Skip to content

Commit 9b49561

Browse files
everestkcVudentz
authored andcommitted
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>
1 parent c6256ec commit 9b49561

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/bluetooth/btintel_pcie.c

-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ static inline char *btintel_pcie_alivectxt_state2str(u32 alive_intr_ctxt)
391391
default:
392392
return "unknown";
393393
}
394-
return "null";
395394
}
396395

397396
/* This function handles the MSI-X interrupt for gp0 cause (bit 0 in

0 commit comments

Comments
 (0)