Commit b259c9b2 authored by Lee Jones's avatar Lee Jones Committed by Greg Kroah-Hartman

staging: vt6655: upc: Suppress set but not used warning in macro

The variable is used in the function using the macro.

Fixes the following W=1 kernel build warning(s):

 drivers/staging/vt6655/upc.h:45:16: warning: variable ‘byData’ set but not used [-Wunused-but-set-variable]

Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210414181129.1628598-28-lee.jones@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2f61c664
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#define PCAvDelayByIO(uDelayUnit) \ #define PCAvDelayByIO(uDelayUnit) \
do { \ do { \
unsigned char byData; \ unsigned char __maybe_unused byData; \
unsigned long ii; \ unsigned long ii; \
\ \
if (uDelayUnit <= 50) { \ if (uDelayUnit <= 50) { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment