staging: rtl8723au: decryptor() use int to store error codes
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:04:36 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:29 +0000 (11:34 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_recv.c

index 19b58ca..eda495a 100644 (file)
@@ -476,8 +476,7 @@ struct recv_frame *decryptor(struct rtw_adapter *padapter,
        struct rx_pkt_attrib *prxattrib = &precv_frame->attrib;
        struct security_priv *psecuritypriv = &padapter->securitypriv;
        struct recv_frame *return_packet = precv_frame;
-       u32 res = _SUCCESS;
-
+       int res = _SUCCESS;
 
        RT_TRACE(_module_rtl871x_recv_c_, _drv_info_,
                 ("prxstat->decrypted =%x prxattrib->encrypt = 0x%03x\n",