summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/btintel_pcie.c
diff options
context:
space:
mode:
authorEverest K.C. <everestkc@everestkc.com.np>2024-10-16 15:39:55 -0600
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-11-14 15:32:09 -0500
commit9b49561f6c35d97f20abc178fece5868dd5e3338 (patch)
tree65491726a652e28f0704a64994c322bb3f073e0f /drivers/bluetooth/btintel_pcie.c
parentc6256ec2165fe8b8e8757a32a66837623e51d442 (diff)
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>
Diffstat (limited to 'drivers/bluetooth/btintel_pcie.c')
-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