]> Pileus Git - ~andy/linux/commitdiff
Staging: bcm: Fixed warning 'braces {} are not necessary for single statement blocks'.
authorTülin İzer <tulinizer@gmail.com>
Wed, 15 May 2013 00:42:46 +0000 (03:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 22:48:56 +0000 (15:48 -0700)
This patch fixes warning: 'braces {} are not necessary for single
statement blocks' found by checkpatch.pl in driver bcm.

Signed-off-by: Tülin İzer <tulinizer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/InterfaceIdleMode.c

index 21c7382e4b5fb24b241a69d72dc838f929a2cf1e..259501c8db5adf10ab60fa26b89864dffd17d6c2 100644 (file)
@@ -203,18 +203,15 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, unsigned int
                while( timeout > jiffies ) {
                        itr++ ;
                        rdmalt(Adapter, CHIP_ID_REG, &chip_id, sizeof(UINT));
-                       if(0xbece3200 == (chip_id&~(0xF0))) {
+                       if(0xbece3200 == (chip_id&~(0xF0)))
                                chip_id = chip_id&~(0xF0);
-                       }
                        if(chip_id == Adapter->chip_id)
                                break;
                }
-               if(timeout < jiffies ) {
+               if(timeout < jiffies )
                        BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, IDLE_MODE, DBG_LVL_ALL, "Not able to read chip-id even after 25 msec");
-               }
-               else {
+               else
                        BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, IDLE_MODE, DBG_LVL_ALL, "Number of completed iteration to read chip-id :%lu", itr);
-               }
 
                status = wrmalt(Adapter, SW_ABORT_IDLEMODE_LOC, &Pattern, sizeof(status));
                if(status) {