Skip to content

Commit

Permalink
Bluetooth: btintel_pcie: Remove deadcode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
everestkc authored and Vudentz committed Nov 14, 2024
1 parent c6256ec commit 9b49561
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/bluetooth/btintel_pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b49561

Please sign in to comment.