staging: r8188eu: remove unnecessary initialization to zero
authorMichael Straube <straube.linux@gmail.com>
Sat, 20 Aug 2022 18:16:16 +0000 (20:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Aug 2022 13:42:46 +0000 (15:42 +0200)
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>
drivers/staging/r8188eu/core/rtw_xmit.c

index 5167298..f798890 100644 (file)
@@ -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)