lkml.org 
[lkml]   [2021]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH linux-next] USB: Delete the useless assignment to "nbytes"
Date
From: luo penghao <luo.penghao@zte.com.cn>

The assignment of the local variable "nbytes" in the if statement
will not be used

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
---
drivers/usb/mon/mon_bin.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c
index f48a23a..b8ba0f7 100644
--- a/drivers/usb/mon/mon_bin.c
+++ b/drivers/usb/mon/mon_bin.c
@@ -845,7 +845,6 @@ static ssize_t mon_bin_read(struct file *file, char __user *buf,
mutex_unlock(&rp->fetch_lock);
return -EFAULT;
}
- nbytes -= step_len;
buf += step_len;
rp->b_read += step_len;
done += step_len;
--
2.15.2

\
 
 \ /
  Last update: 2021-11-11 16:12    [W:0.371 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site