]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8712: Fix unnecessary parentheses style warning
authorYeliz Taneroglu <yeliztaneroglu@gmail.com>
Tue, 30 Sep 2014 18:35:59 +0000 (21:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 17:15:12 +0000 (10:15 -0700)
This fixes the following checkpatch.pl warning:

drivers/staging/rtl8712/rtl871x_recv.c:634 warning: Unnecessary parentheses - maybe == should be = ?

Signed-off-by: Yeliz Taneroglu <yeliztaneroglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_recv.c

index 8b53f568abe3f62688938b2b9ee61f548bdbaedc..9b99a71670f32fc9a55f8f4ed282d00cdaa0c1c8 100644 (file)
@@ -631,7 +631,7 @@ sint r8712_wlanhdr_to_ethhdr(union recv_frame *precvframe)
        rmv_len = pattrib->hdrlen + pattrib->iv_len +
                  (bsnaphdr ? SNAP_SIZE : 0);
        len = precvframe->u.hdr.len - rmv_len;
-       if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == true)) {
+       if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) {
                ptr += rmv_len;
                *ptr = 0x87;
                *(ptr+1) = 0x12;