]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Bluetooth: btintel_pcie: Remove deadcode
authorEverest K.C. <everestkc@everestkc.com.np>
Wed, 16 Oct 2024 21:39:55 +0000 (15:39 -0600)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Nov 2024 20:32:09 +0000 (15:32 -0500)
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>
drivers/bluetooth/btintel_pcie.c

index e4ae8c898dfdb79e2ab7ee5383bfb5c931117ef4..660496e55276dddd4af59a3c76a7eade5dc4e6c4 100644 (file)
@@ -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