keucr: fixes else should follow close brace error
authorAmarjargal Gundjalam <amarjargal16@gmail.com>
Fri, 17 May 2013 08:03:15 +0000 (01:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2013 04:05:40 +0000 (21:05 -0700)
This patch fixes the following checkpatch error,
ERROR: else should follow close brace '}'

Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/keucr/smilmain.c

index fd79cc1ed140e7180f3a8dbc46f5358a1ead4496..afeb8f86152f1fc8e8127a672c20b426d050d404 100644 (file)
@@ -1263,11 +1263,9 @@ int Release_D_ReadBlock(struct us_data *us)
                if (Erase_D_PhyOneBlock(us)) {
                        if (ErrCode==ERR_HwError) return ERROR;
                        if (MarkFail_D_PhyOneBlock(us)) return ERROR;
-               }
-               else
+               } else
                        Clr_D_Bit(Assign[Media.Zone],Media.PhyBlock);
-       }
-       else if (MarkFail_D_PhyOneBlock(us))
+       } else if (MarkFail_D_PhyOneBlock(us))
                return ERROR;
 
        Media.PhyBlock=WriteBlock;
@@ -1338,8 +1336,7 @@ int Copy_D_PhyOneSect(struct us_data *us)
                        err=ERROR;
                        SectCopyMode=REQ_FAIL;
                }
-       }
-       else {
+       } else {
                err=SMSUCCESS;
                for(i=0; i<SECTSIZE; i++)
                        WorkBuf[i]=DUMMY_DATA;
@@ -1681,8 +1678,7 @@ int Make_D_LogTable(struct us_data *us)
                                                        Media.PhyBlock=Log2Phy[Media.Zone][logblock];
                                                        Log2Phy[Media.Zone][logblock]=phyblock;
                                                }
-                                       }
-                                       else {
+                                       } else {
                                                Media.PhyBlock=Log2Phy[Media.Zone][logblock];
                                                Log2Phy[Media.Zone][logblock]=phyblock;
                                        }