summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEverest K.C. <everestkc@everestkc.com.np>2024-10-16 23:39:55 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-11-14 21:32:09 +0100
commit9b49561f6c35d97f20abc178fece5868dd5e3338 (patch)
tree65491726a652e28f0704a64994c322bb3f073e0f
parentBluetooth: hci_qca: use devm_clk_get_optional_enabled_with_rate() (diff)
downloadlinux-9b49561f6c35d97f20abc178fece5868dd5e3338.tar.xz
linux-9b49561f6c35d97f20abc178fece5868dd5e3338.zip
Bluetooth: btintel_pcie: Remove deadcode
The switch case statement has a default branch. Thus, the return statement at the end of the function can never be reached. Fix it by removing the return statement at the end of the function. This issue was reported by Coverity Scan. Signed-off-by: Everest K.C. <everestkc@everestkc.com.np> Reviewed-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
-rw-r--r--drivers/bluetooth/btintel_pcie.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
index e4ae8c898dfd..660496e55276 100644
--- a/drivers/bluetooth/btintel_pcie.c
+++ b/drivers/bluetooth/btintel_pcie.c
@@ -391,7 +391,6 @@ static inline char *btintel_pcie_alivectxt_state2str(u32 alive_intr_ctxt)
default:
return "unknown";
}
- return "null";
}
/* This function handles the MSI-X interrupt for gp0 cause (bit 0 in