]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8188eu: || vs && typo
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Aug 2013 21:46:14 +0000 (00:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 18:46:47 +0000 (11:46 -0700)
Obviously it's impossible for ->KeyLength to be both 5 and 13.  I assume
that && was intended here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ioctl_set.c

index 9e127746416fd992be3a09cd48d5b0c81b53052b..47fb253fff171a5226fe9ba8521ec365595e5058 100644 (file)
@@ -743,7 +743,7 @@ _func_enter_;
 
                /*  Check key length for WEP. For NDTEST, 2005.01.27, by rcnjko. */
                if ((encryptionalgo == _WEP40_ || encryptionalgo == _WEP104_) &&
-                   (key->KeyLength != 5 || key->KeyLength != 13)) {
+                   (key->KeyLength != 5 && key->KeyLength != 13)) {
                        RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("WEP KeyLength:0x%x != 5 or 13\n", key->KeyLength));
                        ret = _FAIL;
                        goto exit;