]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging:rtl8192u: Refactor GET_COMMAND_PACKET_FRAG_THRESHOLD - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Sat, 8 Sep 2018 09:44:07 +0000 (10:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 15:12:16 +0000 (17:12 +0200)
The MACRO GET_COMMAND_PACKET_FRAG_THRESHOLD causes a number of
checkpatch issues so has been refactored to use braces around the
parameter 'v' to avoid precedence issues, and to add spaces around
operators.

These changes are coding style changes which should have no impact
on runtime code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r819xU_firmware.h

index 794dca7dcd95be20be63a9b3d2276f14186fbacd..e78e547044b4e531c109b543999d10cb9db9ce2c 100644 (file)
@@ -3,7 +3,7 @@
 #define __INC_FIRMWARE_H
 
 #define GET_COMMAND_PACKET_FRAG_THRESHOLD(v) \
-       (4*(v/4) - 8 - USB_HWDESC_HEADER_LEN)
+       (4 * ((v) / 4) - 8 - USB_HWDESC_HEADER_LEN)
 
 typedef enum _firmware_init_step {
        FW_INIT_STEP0_BOOT = 0,