mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: cgel.zte@gmail.com
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	luo penghao <luo.penghao@zte.com.cn>,
	Zeal Robot <zealci@zte.com.cn>
Subject: Re: [PATCH linux-next] USB: Delete the useless assignment to "nbytes"
Date: Wed, 17 Nov 2021 14:32:06 +0100	[thread overview]
Message-ID: <YZUEVswwxLsNyV04@kroah.com> (raw)
In-Reply-To: <20211111151124.2659-1-luo.penghao@zte.com.cn>

On Thu, Nov 11, 2021 at 03:11:24PM +0000, cgel.zte@gmail.com wrote:
> 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
> 
> 

This patch is not correct (it's either wrong, or incomplete).  Please
fix your "robot" to not send changes that you have not properly
verified.

thanks,

greg k-h

      reply	other threads:[~2021-11-17 13:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11 15:11 cgel.zte
2021-11-17 13:32 ` Greg Kroah-Hartman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YZUEVswwxLsNyV04@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=cgel.zte@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=luo.penghao@zte.com.cn \
    --cc=sfr@canb.auug.org.au \
    --cc=zealci@zte.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®