From: Dan Carpenter <dan.carpenter@linaro.org>
To: hexingwei001@208suo.com
Cc: hdegoede@redhat.com, mchehab@kernel.org,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
colin.i.king@gmail.com, gregkh@linuxfoundation.org,
sakari.ailus@linux.intel.com
Subject: Re: [PATCH] soc: ti: smartreflex: void function return statements are not generally useful
Date: Fri, 7 Jul 2023 17:54:51 +0300 [thread overview]
Message-ID: <e13aa236-45f5-4d29-866a-999c04ef3be2@kadam.mountain> (raw)
In-Reply-To: <d4b290f08da0c2435f3fa4676e7a5f25@208suo.com>
No need to CC linux-staging@lists.linux.dev. Use
scripts/get_maintainer.pl to find the appropriate lists.
Your From header doesn't have your name, just your email address.
The subject is too long. Change it to:
[PATCH] soc: ti: smartreflex: Remove unnecessary return statement
The patch is corrupted. Take a look at
Documentation/process/email-clients.rst. Send an email to yourself
first to verify it applies.
> diff --git a/drivers/soc/ti/smartreflex.c b/drivers/soc/ti/smartreflex.c
> index 62b2f1464e46..20abfb0b8f26 100644
> --- a/drivers/soc/ti/smartreflex.c
> +++ b/drivers/soc/ti/smartreflex.c
> @@ -955,7 +955,7 @@ static void omap_sr_shutdown(struct platform_device
> *pdev)
> if (sr_info->autocomp_active)
> sr_stop_vddautocomp(sr_info);
>
> - return;
> +
This introduces two blank lines in a row which is a style violation. In
fact, there should be no blank lines before the last } closing brace in
a function so delete the other blank line as well.
> }
regards,
dan carpenter
prev parent reply other threads:[~2023-07-07 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230707133447.28102-1-panzhiai@cdjrlc.com>
2023-07-07 13:38 ` hexingwei001
2023-07-07 14:24 ` hexingwei001
2023-07-07 14:54 ` Dan Carpenter [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=e13aa236-45f5-4d29-866a-999c04ef3be2@kadam.mountain \
--to=dan.carpenter@linaro.org \
--cc=colin.i.king@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=hexingwei001@208suo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.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
all inboxes | Powered by JetHome®