* [PATCH V3][next] Bluetooth: btintel_pcie: Remove structually deadcode
@ 2024-10-15 19:30 Everest K.C.
2024-10-15 22:27 ` Shuah Khan
2024-10-17 16:00 ` patchwork-bot+bluetooth
0 siblings, 2 replies; 4+ messages in thread
From: Everest K.C. @ 2024-10-15 19:30 UTC (permalink / raw)
To: marcel, luiz.dentz
Cc: Everest K.C., skhan, kernel-janitors, linux-bluetooth, linux-kernel
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.
Fixes: 5ea625845b0f ("Bluetooth: btintel_pcie: Add handshake between driver and firmware")
Signed-off-by: Everest K.C. <everestkc@everestkc.com.np>
---
V2 -> V3: - Removed that the change was successfully built
- Removed the link to Coverity Scan report
V1 -> V2: - Changed "Fixing" to "Fix" in the changelog
- Added that the change was successfully built
- Added kernel-janitors mailing list to CC
drivers/bluetooth/btintel_pcie.c | 1 -
1 file changed, 1 deletion(-)
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
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH V3][next] Bluetooth: btintel_pcie: Remove structually deadcode
2024-10-15 19:30 [PATCH V3][next] Bluetooth: btintel_pcie: Remove structually deadcode Everest K.C.
@ 2024-10-15 22:27 ` Shuah Khan
2024-10-15 23:07 ` Everest K.C.
2024-10-17 16:00 ` patchwork-bot+bluetooth
1 sibling, 1 reply; 4+ messages in thread
From: Shuah Khan @ 2024-10-15 22:27 UTC (permalink / raw)
To: Everest K.C., marcel, luiz.dentz, Dan Carpenter
Cc: kernel-janitors, linux-bluetooth, linux-kernel, Shuah Khan
On 10/15/24 13:30, Everest K.C. 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.
You forgot to fix the typo Dan pointed out in the short log.
Don't forget to include reviewers when you send new version
based on their comments.
+ Adding Dan
>
> Fixes: 5ea625845b0f ("Bluetooth: btintel_pcie: Add handshake between driver and firmware")
> Signed-off-by: Everest K.C. <everestkc@everestkc.com.np>
> ---
> V2 -> V3: - Removed that the change was successfully built
> - Removed the link to Coverity Scan report
> V1 -> V2: - Changed "Fixing" to "Fix" in the changelog
> - Added that the change was successfully built
> - Added kernel-janitors mailing list to CC
>
> drivers/bluetooth/btintel_pcie.c | 1 -
> 1 file changed, 1 deletion(-)
>
> 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
With the typo fixed:
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH V3][next] Bluetooth: btintel_pcie: Remove structually deadcode
2024-10-15 22:27 ` Shuah Khan
@ 2024-10-15 23:07 ` Everest K.C.
0 siblings, 0 replies; 4+ messages in thread
From: Everest K.C. @ 2024-10-15 23:07 UTC (permalink / raw)
To: Shuah Khan
Cc: marcel, luiz.dentz, Dan Carpenter, kernel-janitors,
linux-bluetooth, linux-kernel
On Tue, Oct 15, 2024 at 4:27 PM Shuah Khan <skhan@linuxfoundation.org> wrote:
>
> On 10/15/24 13:30, Everest K.C. 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.
>
> You forgot to fix the typo Dan pointed out in the short log.
> Don't forget to include reviewers when you send new version
> based on their comments.
I missed that feedback from Dan. Will include it in V4.
Also, will include Dan in V4.
> + Adding Dan
> >
> > Fixes: 5ea625845b0f ("Bluetooth: btintel_pcie: Add handshake between driver and firmware")
> > Signed-off-by: Everest K.C. <everestkc@everestkc.com.np>
> > ---
> > V2 -> V3: - Removed that the change was successfully built
> > - Removed the link to Coverity Scan report
> > V1 -> V2: - Changed "Fixing" to "Fix" in the changelog
> > - Added that the change was successfully built
> > - Added kernel-janitors mailing list to CC
> >
> > drivers/bluetooth/btintel_pcie.c | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > 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
>
> With the typo fixed:
>
> Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
>
> thanks,
> -- Shuah
Thanks,
Everest K.C.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH V3][next] Bluetooth: btintel_pcie: Remove structually deadcode
2024-10-15 19:30 [PATCH V3][next] Bluetooth: btintel_pcie: Remove structually deadcode Everest K.C.
2024-10-15 22:27 ` Shuah Khan
@ 2024-10-17 16:00 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2024-10-17 16:00 UTC (permalink / raw)
To: Everest K.C.
Cc: marcel, luiz.dentz, skhan, kernel-janitors, linux-bluetooth,
linux-kernel
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 15 Oct 2024 13:30:12 -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:
- [V3,next] Bluetooth: btintel_pcie: Remove structually deadcode
https://git.kernel.org/bluetooth/bluetooth-next/c/8f66f6498463
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-17 16:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-15 19:30 [PATCH V3][next] Bluetooth: btintel_pcie: Remove structually deadcode Everest K.C.
2024-10-15 22:27 ` Shuah Khan
2024-10-15 23:07 ` Everest K.C.
2024-10-17 16:00 ` patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®