Skip to content

Commit

Permalink
keucr: fixes space required before open parenthesis error
Browse files Browse the repository at this point in the history
This patch fixes the following checkpatch error,
ERROR: space required before the open parenthesis '('

Signed-off-by: Amarjargal Gundjalam <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
amarjargal authored and gregkh committed May 20, 2013
1 parent 99b4974 commit 05a19ed
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions drivers/staging/keucr/smilmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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)) {
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 05a19ed

Please sign in to comment.