]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30c4772fcc82b86f6404dfde64b3f5dea5dd89ad
tree5edd54f14857ddde2b18c80a026f031f6389bd65
parentf364bb9e17b7fd4fb489a61dd9c14b14644f89ea
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