]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: fix u8 less than zero check
authorColin Ian King <colin.king@canonical.com>
Fri, 23 Feb 2018 15:00:08 +0000 (15:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2018 16:32:36 +0000 (17:32 +0100)
commitabf70ad2bedc6da40877534db9c14fc807544e35
tree452a0397aaa99b6b14a78f06af0c95e8b5db72eb
parentfd55302083c6bebc629bcac49642e8f873be8732
staging: rtl8723bs: fix u8 less than zero check

The error variable ret is currently a u8 and so two comparisons
to see if an error return is less than zero will always be false
because ret is unsigned.  Fix this by making ret an int.

Fixes: 84ed90a855bc ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c