Skip to content

Commit

Permalink
wl12xx: remove redundant null check on wl->scan.ssid
Browse files Browse the repository at this point in the history
ssid is an array of u8, so it can never be null, so the null check on
wl->scan.ssid is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Colin Ian King authored and Kalle Valo committed Apr 6, 2016
1 parent 466414a commit e32993e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ti/wl12xx/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static int wl1271_scan_send(struct wl1271 *wl, struct wl12xx_vif *wlvif,
else
cmd->params.band = WL1271_SCAN_BAND_5_GHZ;

if (wl->scan.ssid_len && wl->scan.ssid) {
if (wl->scan.ssid_len) {
cmd->params.ssid_len = wl->scan.ssid_len;
memcpy(cmd->params.ssid, wl->scan.ssid, wl->scan.ssid_len);
}
Expand Down

0 comments on commit e32993e

Please sign in to comment.