* [PATCH] net: usb: Remove unnecessary '0' values from hasdata
@ 2022-07-01 7:18 Li kunyu
2022-07-03 12:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Li kunyu @ 2022-07-01 7:18 UTC (permalink / raw)
To: davem, edumazet; +Cc: linux-usb, netdev, linux-kernel, Li kunyu
hasdata does not need to be initialized to zero. It will be assigned a
value in the following judgment conditions.
Signed-off-by: Li kunyu <kunyu@nfschina.com>
---
drivers/net/usb/catc.c | 2 +-
1 file changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c
index e7fe9c0f63a9..268c32521691 100644
--- a/drivers/net/usb/catc.c
+++ b/drivers/net/usb/catc.c
@@ -280,7 +280,7 @@ static void catc_irq_done(struct urb *urb)
struct catc *catc = urb->context;
u8 *data = urb->transfer_buffer;
int status = urb->status;
- unsigned int hasdata = 0, linksts = LinkNoChange;
+ unsigned int hasdata, linksts = LinkNoChange;
int res;
if (!catc->is_f5u011) {
--
2.18.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] net: usb: Remove unnecessary '0' values from hasdata
2022-07-01 7:18 [PATCH] net: usb: Remove unnecessary '0' values from hasdata Li kunyu
@ 2022-07-03 12:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-07-03 12:10 UTC (permalink / raw)
To: Li kunyu; +Cc: davem, edumazet, linux-usb, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Fri, 1 Jul 2022 15:18:02 +0800 you wrote:
> hasdata does not need to be initialized to zero. It will be assigned a
> value in the following judgment conditions.
>
> Signed-off-by: Li kunyu <kunyu@nfschina.com>
> ---
> drivers/net/usb/catc.c | 2 +-
> 1 file changed, 1 insertions(+), 1 deletions(-)
Here is the summary with links:
- net: usb: Remove unnecessary '0' values from hasdata
https://git.kernel.org/netdev/net-next/c/d0bf1fe6454e
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] 2+ messages in thread
end of thread, other threads:[~2022-07-03 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-01 7:18 [PATCH] net: usb: Remove unnecessary '0' values from hasdata Li kunyu
2022-07-03 12:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).