]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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 19b58cae8c4277df991872397a733cc9859f32a1..eda495a1d5d86105da1d522b4eb20b8c8da2b5a2 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",