Commit 076ef657 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: fixes braces {} are not necessary for any arm of this statement

This patch fixes the warning reported by checkpatch.pl
for braces {} are not necessary for any arm of this statement
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7eb17b8d
...@@ -1457,11 +1457,10 @@ static int wilc_wlan_cfg_commit(int type, u32 drvHandler) ...@@ -1457,11 +1457,10 @@ static int wilc_wlan_cfg_commit(int type, u32 drvHandler)
int seq_no = p->cfg_seq_no % 256; int seq_no = p->cfg_seq_no % 256;
int driver_handler = (u32)drvHandler; int driver_handler = (u32)drvHandler;
if (type == WILC_CFG_SET) { if (type == WILC_CFG_SET)
cfg->wid_header[0] = 'W'; cfg->wid_header[0] = 'W';
} else { else
cfg->wid_header[0] = 'Q'; cfg->wid_header[0] = 'Q';
}
cfg->wid_header[1] = seq_no; cfg->wid_header[1] = seq_no;
cfg->wid_header[2] = (u8)total_len; cfg->wid_header[2] = (u8)total_len;
cfg->wid_header[3] = (u8)(total_len >> 8); cfg->wid_header[3] = (u8)(total_len >> 8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment