staging:rtl8192u: Refactor GET_COMMAND_PACKET_FRAG_THRESHOLD - Style

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>
This commit is contained in:
John Whitmore 2018-09-08 10:44:07 +01:00 committed by Greg Kroah-Hartman
parent 6b32882b8c
commit 6b525447d1
1 changed files with 1 additions and 1 deletions

View 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,