Message ID | 20241016213956.4508-1-everestkc@everestkc.com.np |
---|---|
State | Superseded |
Headers | show |
Series | [V5,next] Bluetooth: btintel_pcie: Remove structurally deadcode | expand |
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Wed, 16 Oct 2024 15:39:55 -0600 you wrote: > 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. > > [...] Here is the summary with links: - [V5,next] Bluetooth: btintel_pcie: Remove structurally deadcode https://git.kernel.org/bluetooth/bluetooth-next/c/8f66f6498463 You are awesome, thank you!
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