]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging:rtl8192u: Refactor RT_TRACE - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 31 Aug 2018 23:02:37 +0000 (00:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 15:11:26 +0000 (17:11 +0200)
Refactor the MACRO RT_TRACE to add parentheses around the parameter
'component', this clears the checkpatch warning with respect to
precedence issues.

This is a coding style change 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/r8192U.h

index b5ad69af8dac065ac7a45ff3fcd752ddfbd8945e..c613894a60885fa8363a4fc92aae640d48b16b69 100644 (file)
@@ -52,7 +52,7 @@
 extern u32 rt_global_debug_component;
 #define RT_TRACE(component, x, args...) \
        do {                                                    \
-               if (rt_global_debug_component & component)      \
+               if (rt_global_debug_component & (component))    \
                        pr_debug("RTL8192U: " x "\n", ##args);  \
        } while (0)