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

staging: rtl8712: aes_cipher(): Change return type

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

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

authored by

Nishka Dasgupta and committed by
Greg Kroah-Hartman
e48a3add f8dbe3f0

+2 -3
+2 -3
drivers/staging/rtl8712/rtl871x_security.c
··· 1011 1011 out[i] = ina[i] ^ inb[i]; 1012 1012 } 1013 1013 1014 - static sint aes_cipher(u8 *key, uint hdrlen, 1015 - u8 *pframe, uint plen) 1014 + static void aes_cipher(u8 *key, uint hdrlen, 1015 + u8 *pframe, uint plen) 1016 1016 { 1017 1017 uint qc_exists, a4_exists, i, j, payload_remainder; 1018 1018 uint num_blocks, payload_index; ··· 1132 1132 bitwise_xor(aes_out, padded_buffer, chain_buffer); 1133 1133 for (j = 0; j < 8; j++) 1134 1134 pframe[payload_index++] = chain_buffer[j]; 1135 - return _SUCCESS; 1136 1135 } 1137 1136 1138 1137 u32 r8712_aes_encrypt(struct _adapter *padapter, u8 *pxmitframe)