staging: rtl8192u: remove redundant null check on array alg
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Feb 2017 11:06:43 +0000 (11:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 12:23:13 +0000 (13:23 +0100)
commit0840ff76902da3c92ecda4660ee3b1a795bbc09d
treea9e887083c0f61d29290e2ed61b0682fc0a01290
parent7a976ce11efe13a9f0c98559a13d6e43e94cb9da
staging: rtl8192u: remove redundant null check on array alg

u.crypt.alg is an array of u8 integers and hence the null check on
this array is redundant and can be removed.

Detected with CoverityScan, CID#143214 ("Array compared against 0")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c