Staging: rtl8712: Remove duplicated argument to |
authorCristina Opriceana <cristina.opriceana@gmail.com>
Sat, 28 Mar 2015 01:30:12 +0000 (03:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2015 15:26:58 +0000 (17:26 +0200)
Delete duplicated argument to | for the state argument in
the _clr_fwstate_() function call as it is redundant.
Detected with coccinelle.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_set.c

index bd1d1b773c4818278e12460200fd08f2dbcd36c7..22262b3558bacd5db51f174cd416fdbc0f332c4e 100644 (file)
@@ -266,8 +266,7 @@ void r8712_set_802_11_infrastructure_mode(struct _adapter *padapter,
                /* clear WIFI_STATION_STATE; WIFI_AP_STATE; WIFI_ADHOC_STATE;
                 * WIFI_ADHOC_MASTER_STATE */
                _clr_fwstate_(pmlmepriv, WIFI_STATION_STATE | WIFI_AP_STATE |
-                             WIFI_ADHOC_STATE | WIFI_ADHOC_MASTER_STATE |
-                             WIFI_AP_STATE);
+                             WIFI_ADHOC_STATE | WIFI_ADHOC_MASTER_STATE);
                switch (networktype) {
                case Ndis802_11IBSS:
                        set_fwstate(pmlmepriv, WIFI_ADHOC_STATE);