From: Greg KH <gregkh@linuxfoundation.org>
To: YueHaibing <yuehaibing@huawei.com>
Cc: balbi@kernel.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] USB: gadget: f_fs: Remove unneed cast in ffs_prepare_buffer()
Date: Sat, 29 May 2021 14:11:36 +0200 [thread overview]
Message-ID: <YLIveGTHK5RjxtS+@kroah.com> (raw)
In-Reply-To: <20210529120408.23456-1-yuehaibing@huawei.com>
On Sat, May 29, 2021 at 08:04:08PM +0800, YueHaibing wrote:
> A coccicheck run provided information like the following.
>
> ./drivers/usb/gadget/function/f_fs.c:3832:9-16:
> WARNING: ERR_CAST can be used with data
>
> ffs_prepare_buffer() should return an ERR_PTR() encoded error
> code on failure.
It does return such a pointer today, so this statement does not make
much sense :(
And is this a v2 patch? What changed from the previous version?
thanks,
greg k-h
next prev parent reply other threads:[~2021-05-29 12:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-29 12:04 [PATCH -next] USB: gadget: f_fs: Remove unneed cast in ffs_prepare_buffer() YueHaibing
2021-05-29 12:11 ` Greg KH [this message]
2021-05-29 12:54 ` YueHaibing
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=YLIveGTHK5RjxtS+@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=balbi@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=yuehaibing@huawei.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.