Commit eb43590f authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman
Browse files

staging: rtl8712: aes_decipher(): Change return type



Change return type of aes_decipher from sint to void as it always
returns _SUCCESS and this value is never used.

Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190802064212.30476-8-nishkadg.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e48a3add
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1184,7 +1184,7 @@ u32 r8712_aes_encrypt(struct _adapter *padapter, u8 *pxmitframe)
	return res;
}

static sint aes_decipher(u8 *key, uint	hdrlen,
static void aes_decipher(u8 *key, uint hdrlen,
			 u8 *pframe, uint plen)
{
	static u8 message[MAX_MSG_SIZE];
@@ -1339,7 +1339,6 @@ static sint aes_decipher(u8 *key, uint hdrlen,
	for (j = 0; j < 8; j++)
		message[payload_index++] = chain_buffer[j];
	/* compare the mic */
	return _SUCCESS;
}

u32 r8712_aes_decrypt(struct _adapter *padapter, u8 *precvframe)