diff options
author | Li kunyu <kunyu@nfschina.com> | 2022-07-01 15:18:02 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-03 13:03:40 +0100 |
commit | d0bf1fe6454e976e39bc1524b9159fa2c0fcf321 (patch) | |
tree | 837b0e4b4fc70e169585b150148742916fd73bfe /drivers/net/usb | |
parent | a48e789dd2633bdeb6552dfdfedd0435f9c2f897 (diff) |
net: usb: Remove unnecessary '0' values from hasdata
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/catc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index e7fe9c0f63a9..99f9949c48f1 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) { |