ATH11K Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: John Crispin <john@phrozen.org>
To: ath11k@lists.infradead.org, Kalle Valo <kvalo@codeaurora.org>
Cc: John Crispin <john@phrozen.org>
Subject: [PATCH] ath11k: fix compiler warnings for unused variables
Date: Wed, 10 Apr 2019 07:58:40 +0200	[thread overview]
Message-ID: <20190410055840.5049-1-john@phrozen.org> (raw)

  CC [M]  drivers/net/wireless/ath/ath11k/core.o
drivers/net/wireless/ath/ath11k/core.c: In function 'ath11k_core_init':
drivers/net/wireless/ath/ath11k/core.c:609:10: warning: unused variable 'rproc_phandle' [-Wunused-variable]
phandle rproc_phandle;
^
drivers/net/wireless/ath/ath11k/core.c:608:16: warning: unused variable 'prproc' [-Wunused-variable]
struct rproc *prproc;
^
drivers/net/wireless/ath/ath11k/core.c:607:17: warning: unused variable 'dev' [-Wunused-variable]
struct device *dev = sc->dev;
^

Signed-off-by: John Crispin <john@phrozen.org>
---
 drivers/net/wireless/ath/ath11k/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c
index 48a42cad4e14..af4aa8eabd81 100644
--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -747,11 +747,11 @@ static void ath11k_core_restart(struct work_struct *work)
 int ath11k_core_init(struct ath11k_base *sc)
 {
 	struct device *dev = sc->dev;
+#ifndef CONFIG_IPQ_SUBSYSTEM_RESTART
 	struct rproc *prproc;
 	phandle rproc_phandle;
 	int ret;
 
-#ifndef CONFIG_IPQ_SUBSYSTEM_RESTART
 	if (of_property_read_u32(dev->of_node, "q6_rproc", &rproc_phandle)) {
 		ath11k_err(sc, "failed to get q6_rproc handle\n");
 		return -ENOENT;
-- 
2.11.0


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

             reply	other threads:[~2019-04-10  5:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-10  5:58 John Crispin [this message]
2019-04-10  8:04 ` [PATCH] ath11k: fix compiler warnings for unused variables Sven Eckelmann
2019-04-15 14:07   ` Kalle Valo

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=20190410055840.5049-1-john@phrozen.org \
    --to=john@phrozen.org \
    --cc=ath11k@lists.infradead.org \
    --cc=kvalo@codeaurora.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