staging:wilc1000:host_interface.c Added braces {} on else statemement
authorScott Matheina <scott@matheina.com>
Thu, 12 Jan 2017 03:38:33 +0000 (21:38 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jan 2017 17:10:25 +0000 (18:10 +0100)
Fixes checkpatch warning: braces {} should be used on all arms of
this statement

Signed-off-by: Scott Matheina <scott@matheina.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c

index b00ea75524e407deed8f767dc9ddc686370beabe..c307ccef790eb70f057914e91b9d08301cc31365 100644 (file)
@@ -3998,8 +3998,9 @@ static void *host_int_ParseJoinBssParam(struct network_info *ptstrNetworkInfo)
                                pNewJoinBssParam->rsn_found = true;
                                index += pu8IEs[index + 1] + 2;
                                continue;
-                       } else
+                       } else {
                                index += pu8IEs[index + 1] + 2;
+                       }
                }
        }