From: Chang Yu Date: Wed, 22 Jun 2022 04:52:31 +0000 (-0700) Subject: staging: r8188eu: Fixed two brace coding style issues X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dd875fb747998b704ab76a8bc8b24f25b1ec3370;p=linux.git staging: r8188eu: Fixed two brace coding style issues Removed two pairs of unnecessary curly braces as per checkpatch.pl Tested-by: Philipp Hortmann # Edimax N150 Signed-off-by: Chang Yu Link: https://lore.kernel.org/r/f08a494f324cf5a3b5ed73aab6b3a432cb1da67b.1655872968.git.marcus.yu.56@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/core/rtw_recv.c b/drivers/staging/r8188eu/core/rtw_recv.c index 7e2f5c2f9111d..38b7905dc88f1 100644 --- a/drivers/staging/r8188eu/core/rtw_recv.c +++ b/drivers/staging/r8188eu/core/rtw_recv.c @@ -1365,13 +1365,12 @@ static int amsdu_to_msdu(struct adapter *padapter, struct recv_frame *prframe) a_len -= nSubframe_Length; if (a_len != 0) { padding_len = 4 - ((nSubframe_Length + ETH_HLEN) & (4 - 1)); - if (padding_len == 4) { + if (padding_len == 4) padding_len = 0; - } - if (a_len < padding_len) { + if (a_len < padding_len) goto exit; - } + pdata += padding_len; a_len -= padding_len; }