From: Roel Kluin <roel.kluin@gmail.com>
To: flamingice@sourmilk.net
Cc: linux-wireless@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] wireless/p54: fw_state can't be both OFF and RESET
Date: Mon, 18 May 2009 16:49:19 +0200 [thread overview]
Message-ID: <4A11756F.5000206@gmail.com> (raw)
fw_state can't be both OFF and RESET
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
This was not tested in any way, so please review.
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c
index d1fe577..c327659 100644
--- a/drivers/net/wireless/p54/p54spi.c
+++ b/drivers/net/wireless/p54/p54spi.c
@@ -516,7 +516,7 @@ static void p54spi_work(struct work_struct *work)
mutex_lock(&priv->mutex);
- if (priv->fw_state == FW_STATE_OFF &&
+ if (priv->fw_state == FW_STATE_OFF ||
priv->fw_state == FW_STATE_RESET)
goto out;
next reply other threads:[~2009-05-18 14:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 14:49 Roel Kluin [this message]
2009-05-18 17:28 ` [PATCH] p54spi: drop test for FW_STATE_RESET in p54spi_work Max Filippov
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=4A11756F.5000206@gmail.com \
--to=roel.kluin@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=flamingice@sourmilk.net \
--cc=linux-wireless@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).