Staging: rtl8192e: remove redundant null check on array alg
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Feb 2017 11:37:54 +0000 (11:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:06:44 +0000 (15:06 +0100)
commit1393f1bc112d05b7229ca0667b66cad95d21b30c
tree5edd54f14857ddde2b18c80a026f031f6389bd65
parentf40c60db19ab1ec21aa310e54ba4fadc83292ebc
Staging: rtl8192e: 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#146583 ("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/rtl8192e/rtllib_softmac.c