summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@kernel.org>2023-06-28 21:48:53 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-06-29 09:56:13 +0200
commitc61480a2ea5e5b997d10dfda556d3a63e31f87cd (patch)
tree4fcdc8d118f896e81b6821280b9ea0f167725efb /drivers/hid
parent190e2e1177010ab9ffccd5f968500099c247e8e5 (diff)
downloadlinux-stable-c61480a2ea5e5b997d10dfda556d3a63e31f87cd.tar.gz
linux-stable-c61480a2ea5e5b997d10dfda556d3a63e31f87cd.tar.bz2
linux-stable-c61480a2ea5e5b997d10dfda556d3a63e31f87cd.zip
media: wl128x: fix a clang warning
Clang-16 produces this warning, which is fatal with CONFIG_WERROR: ../drivers/media/radio/wl128x/fmdrv_common.c:1237:19: error: variable 'cmd_cnt' set but not used [-Werror,-Wunused-but-set-variable] int ret, fw_len, cmd_cnt; ^ 1 error generated. What happens is that cmd_cnt tracks the amount of firmware data packets were transfered, which is printed only when debug is used. Switch to use the firmware count, as the message is all about reporting a partial firmware transfer. Link: https://lore.kernel.org/linux-media/6badd27ebfa718d5737f517f18b29a3e0f6e43f8.1687981726.git.mchehab@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/hid')
0 files changed, 0 insertions, 0 deletions