From: Amarjargal Gundjalam Date: Fri, 17 May 2013 08:02:50 +0000 (-0700) Subject: keucr: fixes open brace should be on the previous line error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=23f73b3a0e411d13719043daee666bfb987be13c;p=openwrt%2Fstaging%2Fblogic.git keucr: fixes open brace should be on the previous line error This patch fixes the following checkpatch error, ERROR: that open brace { should be on the previous line Signed-off-by: Amarjargal Gundjalam Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/keucr/smilmain.c b/drivers/staging/keucr/smilmain.c index 263ca4a3535d..fd79cc1ed140 100644 --- a/drivers/staging/keucr/smilmain.c +++ b/drivers/staging/keucr/smilmain.c @@ -99,10 +99,8 @@ int SM_FreeMem(void) int i; pr_info("SM_FreeMem start\n"); - for (i=0; i len) bn = len; @@ -164,8 +161,7 @@ int Media_D_ReadSector(struct us_data *us, DWORD start,WORD count,BYTE *buf) bn = count; //if (Media_D_ReadOneSect(fdoExt, SectBuf)) //if (Media_D_ReadOneSect(fdoExt, count, buf)) - if (Media_D_ReadOneSect(us, bn, buf)) - { + if (Media_D_ReadOneSect(us, bn, buf)) { ErrCode = ERR_EccReadErr; return ErrCode; } @@ -198,8 +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; @@ -210,18 +205,15 @@ int Media_D_CopySector(struct us_data *us, DWORD start,WORD count,BYTE *buf) bn = count; //if (Ssfdc_D_CopyBlock(fdoExt,count,buf,Redundant)) - if (Ssfdc_D_CopyBlock(us,bn,buf,Redundant)) - { + if (Ssfdc_D_CopyBlock(us,bn,buf,Redundant)) { ErrCode = ERR_WriteFault; return ErrCode; } Media.Sector = 0x1F; //if (Release_D_ReadBlock(fdoExt)) - if (Release_D_CopySector(us)) - { - if (ErrCode==ERR_HwError) - { + if (Release_D_CopySector(us)) { + if (ErrCode==ERR_HwError) { ErrCode = ERR_WriteFault; return ErrCode; } @@ -249,8 +241,7 @@ int Release_D_CopySector(struct us_data *us) Log2Phy[Media.Zone][Media.LogBlock]=WriteBlock; Media.PhyBlock=ReadBlock; - if (Media.PhyBlock==NO_ASSIGN) - { + if (Media.PhyBlock==NO_ASSIGN) { Media.PhyBlock=WriteBlock; return SMSUCCESS; } @@ -664,15 +655,13 @@ int Check_D_MediaFmt(struct us_data *us) SectCopyMode = COMPLETED; //usleep(56*1024); - if (Set_D_PhyFmtValue(us)) - { + if (Set_D_PhyFmtValue(us)) { ErrCode = ERR_UnknownMedia; return ERROR; } //usleep(56*1024); - if (Search_D_CIS(us)) - { + if (Search_D_CIS(us)) { ErrCode = ERR_IllegalFmt; return ERROR; } @@ -746,10 +735,8 @@ int Conv_D_MediaAddr(struct us_data *us, DWORD addr) temp = addr/Ssfdc.MaxSectors; Media.Zone = (BYTE) (temp/Ssfdc.MaxLogBlocks); - if (Log2Phy[Media.Zone]==NULL) - { - if (Make_D_LogTable(us)) - { + if (Log2Phy[Media.Zone]==NULL) { + if (Make_D_LogTable(us)) { ErrCode = ERR_IllegalFmt; return ERROR; } @@ -758,8 +745,7 @@ int Conv_D_MediaAddr(struct us_data *us, DWORD addr) Media.Sector = (BYTE) (addr%Ssfdc.MaxSectors); Media.LogBlock = (WORD) (temp%Ssfdc.MaxLogBlocks); - if (Media.Zone=Ssfdc.MaxLogBlocks) continue; - if (Log2Phy[Media.Zone][Media.LogBlock]==NO_ASSIGN) - { + if (Log2Phy[Media.Zone][Media.LogBlock]==NO_ASSIGN) { Log2Phy[Media.Zone][Media.LogBlock]=Media.PhyBlock; continue; } @@ -1673,30 +1660,29 @@ int Make_D_LogTable(struct us_data *us) logblock = Media.LogBlock; Media.Sector = (BYTE)(Ssfdc.MaxSectors-1); - if (Ssfdc_D_ReadRedtData(us, Redundant)) - { Ssfdc_D_Reset(us); return ERROR; } + if (Ssfdc_D_ReadRedtData(us, Redundant)) { + Ssfdc_D_Reset(us); + return ERROR; + } - if (!Load_D_LogBlockAddr(Redundant)) - { - if (Media.LogBlock==logblock) - { + if (!Load_D_LogBlockAddr(Redundant)) { + if (Media.LogBlock==logblock) { Media.PhyBlock=Log2Phy[Media.Zone][logblock]; - if (Ssfdc_D_ReadRedtData(us, Redundant)) - { Ssfdc_D_Reset(us); return ERROR; } + if (Ssfdc_D_ReadRedtData(us, Redundant)) { + Ssfdc_D_Reset(us); + return ERROR; + } Media.PhyBlock=phyblock; - if (!Load_D_LogBlockAddr(Redundant)) - { - if (Media.LogBlock!=logblock) - { + if (!Load_D_LogBlockAddr(Redundant)) { + if (Media.LogBlock!=logblock) { Media.PhyBlock=Log2Phy[Media.Zone][logblock]; Log2Phy[Media.Zone][logblock]=phyblock; } } - else - { + else { Media.PhyBlock=Log2Phy[Media.Zone][logblock]; Log2Phy[Media.Zone][logblock]=phyblock; } @@ -1747,10 +1733,8 @@ int MarkFail_D_PhyOneBlock(struct us_data *us) Set_D_FailBlock(WorkRedund); //Ssfdc_D_WriteRedtMode(); - for(Media.Sector=0; Media.Sector