提交 d0bf1fe6 编写于 作者: L Li kunyu 提交者: David S. Miller

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: NLi kunyu <kunyu@nfschina.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a48e789d
...@@ -280,7 +280,7 @@ static void catc_irq_done(struct urb *urb) ...@@ -280,7 +280,7 @@ static void catc_irq_done(struct urb *urb)
struct catc *catc = urb->context; struct catc *catc = urb->context;
u8 *data = urb->transfer_buffer; u8 *data = urb->transfer_buffer;
int status = urb->status; int status = urb->status;
unsigned int hasdata = 0, linksts = LinkNoChange; unsigned int hasdata, linksts = LinkNoChange;
int res; int res;
if (!catc->is_f5u011) { if (!catc->is_f5u011) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册