diff options
author | Amarjargal Gundjalam <amarjargal16@gmail.com> | 2013-05-17 12:04:18 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-20 08:05:42 +0400 |
commit | 05a19ed0c2133d7d0d5416f638d4633e05a5e441 (patch) | |
tree | 775f40abcad93d6aaff692b36cd6831aa6e9c6a1 /drivers/staging/keucr | |
parent | 99b49747cdc3459a1e947469e6f35cce0919afc2 (diff) | |
download | linux-05a19ed0c2133d7d0d5416f638d4633e05a5e441.tar.xz |
keucr: fixes space required before open parenthesis error
This patch fixes the following checkpatch error,
ERROR: space required before the open parenthesis '('
Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/keucr')
-rw-r--r-- | drivers/staging/keucr/smilmain.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/staging/keucr/smilmain.c b/drivers/staging/keucr/smilmain.c index 03caa02e9dcb..2e8432e51a39 100644 --- a/drivers/staging/keucr/smilmain.c +++ b/drivers/staging/keucr/smilmain.c @@ -153,7 +153,7 @@ int Media_D_ReadSector(struct us_data *us, DWORD start, WORD count, BYTE *buf) if (Conv_D_MediaAddr(us, start)) return ErrCode; - while(1) { + while (1) { len = Ssfdc.MaxSectors - Media.Sector; if (count > len) bn = len; @@ -194,7 +194,7 @@ int Media_D_CopySector(struct us_data *us, DWORD start, WORD count, BYTE *buf) if (Conv_D_MediaAddr(us, start)) return ErrCode; - while(1) { + while (1) { if (Assign_D_WriteBlock()) return ERROR; @@ -852,7 +852,7 @@ int Media_D_ReadOneSect(struct us_data *us, WORD count, BYTE *buf) } err=ErrCode; - for(retry=0; retry<2; retry++) { + for (retry=0; retry<2; retry++) { if (Copy_D_BlockAll(us, (err==ERR_EccReadErr)?REQ_FAIL:REQ_ERASE)) { if (ErrCode==ERR_HwError) return ERROR; @@ -1067,7 +1067,7 @@ int Copy_D_BlockAll(struct us_data *us, DWORD mode) if (mode==REQ_FAIL) SectCopyMode=REQ_FAIL; - for(Media.Sector=0; Media.Sector<Ssfdc.MaxSectors; Media.Sector++) { + for (Media.Sector=0; Media.Sector<Ssfdc.MaxSectors; Media.Sector++) { if (Copy_D_PhyOneSect(us)) { if (ErrCode==ERR_HwError) return ERROR; @@ -1208,7 +1208,7 @@ int Assign_D_WriteBlock(void) //ADDRESS_T bb = (ADDRESS_T) &Media; ReadBlock=Media.PhyBlock; - for(WriteBlock=AssignStart[Media.Zone]; WriteBlock<Ssfdc.MaxBlocks; WriteBlock++) { + for (WriteBlock=AssignStart[Media.Zone]; WriteBlock<Ssfdc.MaxBlocks; WriteBlock++) { if (!Chk_D_Bit(Assign[Media.Zone], WriteBlock)) { Set_D_Bit(Assign[Media.Zone], WriteBlock); AssignStart[Media.Zone]=WriteBlock+1; @@ -1219,7 +1219,7 @@ int Assign_D_WriteBlock(void) } } - for(WriteBlock=0; WriteBlock<AssignStart[Media.Zone]; WriteBlock++) { + for (WriteBlock=0; WriteBlock<AssignStart[Media.Zone]; WriteBlock++) { if (!Chk_D_Bit(Assign[Media.Zone], WriteBlock)) { Set_D_Bit(Assign[Media.Zone], WriteBlock); AssignStart[Media.Zone]=WriteBlock+1; @@ -1299,7 +1299,7 @@ int Copy_D_PhyOneSect(struct us_data *us) /* pr_info("Copy_D_PhyOneSect --- Secotr = %x\n", Media.Sector); */ if (ReadBlock!=NO_ASSIGN) { Media.PhyBlock=ReadBlock; - for(retry=0; retry<2; retry++) { + for (retry=0; retry<2; retry++) { if (retry!=0) { Ssfdc_D_Reset(us); if (Ssfdc_D_ReadCisSect(us, WorkBuf, WorkRedund)) { @@ -1338,7 +1338,7 @@ int Copy_D_PhyOneSect(struct us_data *us) } } else { err=SMSUCCESS; - for(i=0; i<SECTSIZE; i++) + for (i=0; i<SECTSIZE; i++) WorkBuf[i]=DUMMY_DATA; Clr_D_RedundantData(WorkRedund); } @@ -1375,12 +1375,12 @@ int Read_D_PhyOneSect(struct us_data *us, WORD count, BYTE *buf) //ADDRESS_T bb = (ADDRESS_T) &Media; if (Media.PhyBlock==NO_ASSIGN) { - for(i=0; i<SECTSIZE; i++) + for (i=0; i<SECTSIZE; i++) *buf++=DUMMY_DATA; return SMSUCCESS; } - for(retry=0; retry<2; retry++) { + for (retry=0; retry<2; retry++) { if (retry!=0) { Ssfdc_D_Reset(us); @@ -1614,13 +1614,13 @@ int Make_D_LogTable(struct us_data *us) { /* pr_info("Make_D_LogTable --- MediaZone = 0x%x\n", Media.Zone); */ - for(Media.LogBlock=0; Media.LogBlock<Ssfdc.MaxLogBlocks; Media.LogBlock++) + for (Media.LogBlock=0; Media.LogBlock<Ssfdc.MaxLogBlocks; Media.LogBlock++) Log2Phy[Media.Zone][Media.LogBlock]=NO_ASSIGN; - for(Media.PhyBlock=0; Media.PhyBlock<(MAX_BLOCKNUM/8); Media.PhyBlock++) + for (Media.PhyBlock=0; Media.PhyBlock<(MAX_BLOCKNUM/8); Media.PhyBlock++) Assign[Media.Zone][Media.PhyBlock]=0x00; - for(Media.PhyBlock=0; Media.PhyBlock<Ssfdc.MaxBlocks; Media.PhyBlock++) { + for (Media.PhyBlock=0; Media.PhyBlock<Ssfdc.MaxBlocks; Media.PhyBlock++) { if ((!Media.Zone) && (Media.PhyBlock<=CisArea.PhyBlock)) { Set_D_Bit(Assign[Media.Zone], Media.PhyBlock); continue; @@ -1729,7 +1729,7 @@ int MarkFail_D_PhyOneBlock(struct us_data *us) Set_D_FailBlock(WorkRedund); //Ssfdc_D_WriteRedtMode(); - for(Media.Sector=0; Media.Sector<Ssfdc.MaxSectors; Media.Sector++) { + for (Media.Sector=0; Media.Sector<Ssfdc.MaxSectors; Media.Sector++) { if (Ssfdc_D_WriteRedtData(us, WorkRedund)) { Ssfdc_D_Reset(us); Media.Sector = sect; |