]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: fixes braces {} are not necessary for any arm of this statement
authorLeo Kim <leo.kim@atmel.com>
Fri, 6 Nov 2015 02:13:07 +0000 (11:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch fixes the warning reported by checkpatch.pl
for braces {} are not necessary for any arm of this statement

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index 3b097c137fd388a5f79520228df4159716d915b6..d7834c5c31306b2d5305c5e15abc8002ed008c47 100644 (file)
@@ -1457,11 +1457,10 @@ static int wilc_wlan_cfg_commit(int type, u32 drvHandler)
        int seq_no = p->cfg_seq_no % 256;
        int driver_handler = (u32)drvHandler;
 
-       if (type == WILC_CFG_SET) {
+       if (type == WILC_CFG_SET)
                cfg->wid_header[0] = 'W';
-       } else {
+       else
                cfg->wid_header[0] = 'Q';
-       }
        cfg->wid_header[1] = seq_no;
        cfg->wid_header[2] = (u8)total_len;
        cfg->wid_header[3] = (u8)(total_len >> 8);