From: julia.lawall@lip6.fr (Julia Lawall)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] cpufreq-SCPI: Delete unnecessary assignment for the field "owner"
Date: Tue, 16 Aug 2016 16:41:34 -0400 (EDT) [thread overview]
Message-ID: <alpine.DEB.2.10.1608161640400.3291@hadrien> (raw)
In-Reply-To: <a3baf5da-9471-8b58-468f-b9670e136bd4@users.sourceforge.net>
On Tue, 16 Aug 2016, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Tue, 16 Aug 2016 22:30:17 +0200
>
> The field "owner" is set by the core.
> Thus delete an unneeded initialisation.
>
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
> ---
> drivers/cpufreq/scpi-cpufreq.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/cpufreq/scpi-cpufreq.c b/drivers/cpufreq/scpi-cpufreq.c
> index e8a7bf5..4a70d241 100644
> --- a/drivers/cpufreq/scpi-cpufreq.c
> +++ b/drivers/cpufreq/scpi-cpufreq.c
> @@ -104,8 +104,7 @@ static int scpi_cpufreq_remove(struct platform_device *pdev)
>
> static struct platform_driver scpi_cpufreq_platdrv = {
> .driver = {
> - .name = "scpi-cpufreq",
> - .owner = THIS_MODULE,
> + .name = "scpi-cpufreq"
You don't need to remove the comma. There was a trailing comma
originally, so you may as well leave that.
julia
> },
> .probe = scpi_cpufreq_probe,
> .remove = scpi_cpufreq_remove,
> --
> 2.9.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2016-08-16 20:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-16 20:38 [PATCH] cpufreq-SCPI: Delete unnecessary assignment for the field "owner" SF Markus Elfring
2016-08-16 20:41 ` Julia Lawall [this message]
2016-08-17 6:21 ` [PATCH v2] " SF Markus Elfring
2016-08-17 7:05 ` Viresh Kumar
2016-08-17 8:57 ` Sudeep Holla
2016-08-16 20:47 ` [PATCH] " Rafael J. Wysocki
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=alpine.DEB.2.10.1608161640400.3291@hadrien \
--to=julia.lawall@lip6.fr \
--cc=linux-arm-kernel@lists.infradead.org \
/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