staging: rtl8188eu: core: Remove initialisation of return variable
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 4 Jun 2019 08:09:10 +0000 (13:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 13:03:34 +0000 (15:03 +0200)
Remove initialisation of return variable as it is never used.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c

index 8f28aefbe6f97047e043cc32c3b1e97434b84af6..6f3c03201f649633e6d43487fac633bc5aae63c9 100644 (file)
@@ -5322,7 +5322,7 @@ u8 set_tx_beacon_cmd(struct adapter *padapter)
        struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
-       u8 res = _SUCCESS;
+       u8 res;
        int len_diff = 0;
 
        ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);