From: Michael Straube Date: Sat, 20 Aug 2022 18:16:16 +0000 (+0200) Subject: staging: r8188eu: remove unnecessary initialization to zero X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b9a0b94f63df952f6034a96a4142edb32b2a12f2;p=linux.git 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 # Edimax N150 Signed-off-by: Michael Straube Link: https://lore.kernel.org/r/20220820181623.12497-13-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/core/rtw_xmit.c b/drivers/staging/r8188eu/core/rtw_xmit.c index 51672984156b5..f79889011cd19 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)