From: Amarjargal Gundjalam Date: Fri, 17 May 2013 08:04:33 +0000 (-0700) Subject: keurc: fixes spaces required around error X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e6288702620ad61209235893b69738682819daf5;p=linux-beck.git keurc: fixes spaces required around error This patch fixes the following checkpatch error, ERROR: spaces required around that ' ' 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 2e8432e51a39..ff49bfab24b6 100644 --- a/drivers/staging/keucr/smilmain.c +++ b/drivers/staging/keucr/smilmain.c @@ -53,7 +53,7 @@ static BYTE Redundant[REDTSIZE]; static BYTE WorkRedund[REDTSIZE]; //WORD Log2Phy[MAX_ZONENUM][MAX_LOGBLOCK]; static WORD *Log2Phy[MAX_ZONENUM]; // 128 x 1000, Log2Phy[MAX_ZONENUM][MAX_LOGBLOCK]; -static BYTE Assign[MAX_ZONENUM][MAX_BLOCKNUM/8]; +static BYTE Assign[MAX_ZONENUM][MAX_BLOCKNUM / 8]; static WORD AssignStart[MAX_ZONENUM]; WORD ReadBlock; WORD WriteBlock; @@ -62,9 +62,9 @@ static DWORD SectCopyMode; //BIT Control Macro static BYTE BitData[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 } ; -#define Set_D_Bit(a, b) (a[(BYTE)((b)/8)]|= BitData[(b)%8]) -#define Clr_D_Bit(a, b) (a[(BYTE)((b)/8)]&=~BitData[(b)%8]) -#define Chk_D_Bit(a, b) (a[(BYTE)((b)/8)] & BitData[(b)%8]) +#define Set_D_Bit(a, b) (a[(BYTE)((b) / 8)] |= BitData[(b) % 8]) +#define Clr_D_Bit(a, b) (a[(BYTE)((b) / 8)] &= ~BitData[(b) % 8]) +#define Chk_D_Bit(a, b) (a[(BYTE)((b) / 8)] & BitData[(b) % 8]) //extern PBYTE SMHostAddr; BYTE IsSSFDCCompliance; @@ -99,8 +99,8 @@ int SM_FreeMem(void) int i; pr_info("SM_FreeMem start\n"); - for (i=0; i=Ssfdc.MaxLogBlocks) + if (Media.LogBlock >= Ssfdc.MaxLogBlocks) continue; - if (Log2Phy[Media.Zone][Media.LogBlock]==NO_ASSIGN) { - Log2Phy[Media.Zone][Media.LogBlock]=Media.PhyBlock; + if (Log2Phy[Media.Zone][Media.LogBlock] == NO_ASSIGN) { + Log2Phy[Media.Zone][Media.LogBlock] = Media.PhyBlock; continue; } phyblock = Media.PhyBlock; logblock = Media.LogBlock; - Media.Sector = (BYTE)(Ssfdc.MaxSectors-1); + Media.Sector = (BYTE)(Ssfdc.MaxSectors - 1); if (Ssfdc_D_ReadRedtData(us, Redundant)) { Ssfdc_D_Reset(us); @@ -1663,29 +1667,29 @@ int Make_D_LogTable(struct us_data *us) } if (!Load_D_LogBlockAddr(Redundant)) { - if (Media.LogBlock==logblock) { - Media.PhyBlock=Log2Phy[Media.Zone][logblock]; + if (Media.LogBlock == logblock) { + Media.PhyBlock = Log2Phy[Media.Zone][logblock]; if (Ssfdc_D_ReadRedtData(us, Redundant)) { Ssfdc_D_Reset(us); return ERROR; } - Media.PhyBlock=phyblock; + Media.PhyBlock = phyblock; if (!Load_D_LogBlockAddr(Redundant)) { - if (Media.LogBlock!=logblock) { - Media.PhyBlock=Log2Phy[Media.Zone][logblock]; - Log2Phy[Media.Zone][logblock]=phyblock; + if (Media.LogBlock != logblock) { + Media.PhyBlock = Log2Phy[Media.Zone][logblock]; + Log2Phy[Media.Zone][logblock] = phyblock; } } else { - Media.PhyBlock=Log2Phy[Media.Zone][logblock]; - Log2Phy[Media.Zone][logblock]=phyblock; + Media.PhyBlock = Log2Phy[Media.Zone][logblock]; + Log2Phy[Media.Zone][logblock] = phyblock; } } } - Media.Sector=0; + Media.Sector = 0; // here Not yet //#ifdef L2P_ERR_ERASE @@ -1706,11 +1710,11 @@ int Make_D_LogTable(struct us_data *us) //#else // Ssfdc.Attribute|=MWP; //#endif - Media.PhyBlock=phyblock; + Media.PhyBlock = phyblock; } // End for (Media.PhyBlock