From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Wang Qing <wangqing@vivo.com>
Cc: Felipe Balbi <balbi@kernel.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: Assign NULL to phy that may be returned
Date: Fri, 6 Nov 2020 07:51:31 +0100 [thread overview]
Message-ID: <20201106065131.GD697514@kroah.com> (raw)
In-Reply-To: <1604632555-18497-1-git-send-email-wangqing@vivo.com>
On Fri, Nov 06, 2020 at 11:15:55AM +0800, Wang Qing wrote:
> Assign initial values to local variables that may be returned
>
> Signed-off-by: Wang Qing <wangqing@vivo.com>
Your subject, and body of text, seem to have 2 "odd" characters in it,
please fix up.
Also, your subject and changelog body here are identical, please be much
more verbose in the body explaining why you are doing something, not
just what you are doing.
And your subject line should also match other patches for this file, and
have "usb: phy: ..." in the beginning.
> ---
> drivers/usb/phy/phy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c
> index b47285f..de21967
> --- a/drivers/usb/phy/phy.c
> +++ b/drivers/usb/phy/phy.c
> @@ -59,7 +59,7 @@ static struct usb_phy *__usb_find_phy(struct list_head *list,
>
> static struct usb_phy *__of_usb_find_phy(struct device_node *node)
> {
> - struct usb_phy *phy;
> + struct usb_phy *phy = NULL;
Why isn't the compiler complaining about this today? Are you sure this
is needed?
thanks,
greg k-h
next prev parent reply other threads:[~2020-11-06 6:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-06 3:15 [PATCH] usb: Assign NULL to phy that may be returned Wang Qing
2020-11-06 6:51 ` Greg Kroah-Hartman [this message]
2020-11-06 7:39 ` 王擎
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=20201106065131.GD697514@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=balbi@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=wangqing@vivo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).