From: Everest K.C. Date: Wed, 16 Oct 2024 21:39:55 +0000 (-0600) Subject: Bluetooth: btintel_pcie: Remove deadcode X-Git-Tag: v6.13-rc1~135^2~36^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b49561f6c35d97f20abc178fece5868dd5e3338;p=thirdparty%2Fkernel%2Flinux.git 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. Reviewed-by: Shuah Khan Signed-off-by: Luiz Augusto von Dentz --- diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c index e4ae8c898dfdb..660496e55276d 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