aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/core/rtw_xmit.c
diff options
context:
space:
mode:
authorMichael Straube <straube.linux@gmail.com>2022-08-20 20:16:16 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-23 15:42:46 +0200
commitb9a0b94f63df952f6034a96a4142edb32b2a12f2 (patch)
treecd8baa848744a55098a7ee6c31a47628d626b416 /drivers/staging/r8188eu/core/rtw_xmit.c
parentstaging: r8188eu: rename _rtw_pktfile_read() (diff)
downloadlinux-dev-b9a0b94f63df952f6034a96a4142edb32b2a12f2.tar.xz
linux-dev-b9a0b94f63df952f6034a96a4142edb32b2a12f2.zip
staging: r8188eu: remove unnecessary initialization to zero
The initialization to zero of the variable 'len' in rtw_pktfile_read() is not needed. It is immediately set to another value. Remove the initialization to zero. While at it, remove an extra space. Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20220820181623.12497-13-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/core/rtw_xmit.c')
-rw-r--r--drivers/staging/r8188eu/core/rtw_xmit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_xmit.c b/drivers/staging/r8188eu/core/rtw_xmit.c
index 51672984156b..f79889011cd1 100644
--- a/drivers/staging/r8188eu/core/rtw_xmit.c
+++ b/drivers/staging/r8188eu/core/rtw_xmit.c
@@ -429,9 +429,9 @@ static uint rtw_remainder_len(struct pkt_file *pfile)
static uint rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen)
{
- uint len = 0;
+ uint len;
- len = rtw_remainder_len(pfile);
+ len = rtw_remainder_len(pfile);
len = (rlen > len) ? len : rlen;
if (rmem)