linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: MyungJoo Ham <myungjoo.ham@samsung.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Linux Next Mailing List <linux-next@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Leonard Crestez <leonard.crestez@nxp.com>
Subject: [PATCH] PM / devfreq: passive: fix compiler warning
Date: Mon, 26 Aug 2019 21:43:34 +0900	[thread overview]
Message-ID: <CAJ0PZbTEy3U7Ryj8NoVvd2VePbPBM69t-NPNMTzQH3sS3YD6Qw@mail.gmail.com> (raw)
In-Reply-To: <20190826215017.02ab0d34@canb.auug.org.au>

The recent commit of
PM / devfreq: passive: Use non-devm notifiers
had incurred compiler warning, "unused variable 'dev'".

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
---
 drivers/devfreq/governor_passive.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/devfreq/governor_passive.c
b/drivers/devfreq/governor_passive.c
index da48547..be6eeab 100644
--- a/drivers/devfreq/governor_passive.c
+++ b/drivers/devfreq/governor_passive.c
@@ -149,7 +149,6 @@ static int devfreq_passive_notifier_call(struct
notifier_block *nb,
 static int devfreq_passive_event_handler(struct devfreq *devfreq,
                 unsigned int event, void *data)
 {
-    struct device *dev = devfreq->dev.parent;
     struct devfreq_passive_data *p_data
             = (struct devfreq_passive_data *)devfreq->data;
     struct devfreq *parent = (struct devfreq *)p_data->parent;
-- 
2.7.4

  parent reply	other threads:[~2019-08-26 12:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-26 11:50 linux-next: build warning after merge of the devfreq tree Stephen Rothwell
2019-08-26 12:37 ` Leonard Crestez
2019-08-26 12:43 ` MyungJoo Ham [this message]
2019-08-26 12:46 ` MyungJoo Ham
2019-08-28  9:06   ` 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=CAJ0PZbTEy3U7Ryj8NoVvd2VePbPBM69t-NPNMTzQH3sS3YD6Qw@mail.gmail.com \
    --to=myungjoo.ham@samsung.com \
    --cc=leonard.crestez@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=myungjoo.ham@gmail.com \
    --cc=sfr@canb.auug.org.au \
    /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).