Skip to content

Commit d0bf1fe

Browse files
likunyurdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a48e789 commit d0bf1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/catc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static void catc_irq_done(struct urb *urb)
280280
struct catc *catc = urb->context;
281281
u8 *data = urb->transfer_buffer;
282282
int status = urb->status;
283-
unsigned int hasdata = 0, linksts = LinkNoChange;
283+
unsigned int hasdata, linksts = LinkNoChange;
284284
int res;
285285

286286
if (!catc->is_f5u011) {

0 commit comments

Comments
 (0)