]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: usb: Remove unnecessary '0' values from hasdata
authorLi kunyu <kunyu@nfschina.com>
Fri, 1 Jul 2022 07:18:02 +0000 (15:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Jul 2022 12:03:40 +0000 (13:03 +0100)
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>
drivers/net/usb/catc.c

index e7fe9c0f63a9f078ccd0b5a5eed7151b5190fbaf..99f9949c48f1d7038f8012e0b18dd1e7fe7e5ba8 100644 (file)
@@ -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) {