Staging: rtl8192e: Avoid multiple assignments
authorFelix Schlepper <f3sch.git@outlook.com>
Fri, 1 Jul 2022 09:24:50 +0000 (11:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Jul 2022 12:25:45 +0000 (14:25 +0200)
This addresses an issue raised by checkpatch.pl:

     $ ./scripts/checkpatch.pl --terse -f drivers/staging/rtl8192e/rtllib_wx.c
     CHECK: multiple assignments should be avoided

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Signed-off-by: Felix Schlepper <f3sch.git@outlook.com>
Link: https://lore.kernel.org/r/899a1010643a05668465069951518e5dcab9c77e.1656667089.git.f3sch.git@outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_wx.c

index b7f19b38b0e1331ca7b3dbd6dbf53eb03bff8db4..121bf939c6a4b584193b8bbc4064c936df868c8b 100644 (file)
@@ -149,7 +149,8 @@ static inline char *rtl819x_translate_scan(struct rtllib_device *ieee,
                        max_rate = rate;
        }
        iwe.cmd = SIOCGIWRATE;
-       iwe.u.bitrate.fixed = iwe.u.bitrate.disabled = 0;
+       iwe.u.bitrate.disabled = 0;
+       iwe.u.bitrate.fixed = 0;
        iwe.u.bitrate.value = max_rate * 500000;
        start = iwe_stream_add_event_rsl(info, start, stop, &iwe, IW_EV_PARAM_LEN);
        iwe.cmd = IWEVCUSTOM;