]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btnxpuart: Fix missing devm_request_irq() return value check
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 25 May 2025 19:00:21 +0000 (21:00 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 30 May 2025 17:29:34 +0000 (13:29 -0400)
commitedc14f2adc6401d67bf73828d9135c80d32615a2
tree0d733f057b370d764a070ccf73e46235628ab2ed
parent03f1700b9b4d4f2fed3165370f3c23db76553178
Bluetooth: btnxpuart: Fix missing devm_request_irq() return value check

Return value of devm_request_irq() must be checked (function is even
annotated) and without it clang W=1 complains:

  btnxpuart.c:494:6: error: unused variable 'ret' [-Werror,-Wunused-variable]

Setting up wakeup IRQ handler is not really critical, because the
handler is empty, so just log the informational message so user could
submit proper bug report and silences the clang warning.

Fixes: c50b56664e48 ("Bluetooth: btnxpuart: Implement host-wakeup feature")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btnxpuart.c