Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190802064212.30476-8-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nishka Dasgupta and committed by
Greg Kroah-Hartman
eb43590f e48a3add

+2 -3
+2 -3
drivers/staging/rtl8712/rtl871x_security.c
··· 1184 1184 return res; 1185 1185 } 1186 1186 1187 - static sint aes_decipher(u8 *key, uint hdrlen, 1188 - u8 *pframe, uint plen) 1187 + static void aes_decipher(u8 *key, uint hdrlen, 1188 + u8 *pframe, uint plen) 1189 1189 { 1190 1190 static u8 message[MAX_MSG_SIZE]; 1191 1191 uint qc_exists, a4_exists, i, j, payload_remainder; ··· 1339 1339 for (j = 0; j < 8; j++) 1340 1340 message[payload_index++] = chain_buffer[j]; 1341 1341 /* compare the mic */ 1342 - return _SUCCESS; 1343 1342 } 1344 1343 1345 1344 u32 r8712_aes_decrypt(struct _adapter *padapter, u8 *precvframe)