linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: John W Linville <linville@tuxdriver.com>
Cc: bcm43xx-dev@lists.berlios.de, linux-wireless@vger.kernel.org
Subject: [PATCH] b43: Fix phy_g.c compiler warning
Date: Sat, 24 Jan 2009 22:36:57 +0100	[thread overview]
Message-ID: <200901242236.58641.mb@bu3sch.de> (raw)

=46ix compile warning for non-debug builds:

drivers/net/wireless/b43/phy_g.c: In function =E2=80=98b43_gphy_op_reca=
lc_txpower=E2=80=99:
drivers/net/wireless/b43/phy_g.c:3195: warning: unused variable =E2=80=98=
dbm=E2=80=99

Signed-off-by: Michael Buesch <mb@bu3sch.de>

---

Index: wireless-testing/drivers/net/wireless/b43/phy_g.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- wireless-testing.orig/drivers/net/wireless/b43/phy_g.c	2009-01-23 1=
9:18:42.000000000 +0100
+++ wireless-testing/drivers/net/wireless/b43/phy_g.c	2009-01-24 22:33:=
44.000000000 +0100
@@ -3188,20 +3188,23 @@ static enum b43_txpwr_result b43_gphy_op
 	/* Lower attenuation =3D> Bigger power output. Negate it. */
 	bbatt_delta =3D -bbatt_delta;
 	/* RF att affects power level 4 times as much as
 	 * Baseband attennuation. Subtract it. */
 	bbatt_delta -=3D 4 * rfatt_delta;
=20
+#if B43_DEBUG
 	if (b43_debug(dev, B43_DBG_XMITPOWER)) {
 		int dbm =3D pwr_adjust < 0 ? -pwr_adjust : pwr_adjust;
 		b43dbg(dev->wl,
 		       "[TX power deltas]  %s" Q52_FMT " dBm   =3D>   "
 		       "bbatt-delta =3D %d,  rfatt-delta =3D %d\n",
 		       (pwr_adjust < 0 ? "-" : ""), Q52_ARG(dbm),
 		       bbatt_delta, rfatt_delta);
 	}
+#endif /* DEBUG */
+
 	/* So do we finally need to adjust something in hardware? */
 	if ((rfatt_delta =3D=3D 0) && (bbatt_delta =3D=3D 0))
 		goto no_adjustment_needed;
=20
 	/* Save the deltas for later when we adjust the power. */
 	gphy->bbatt_delta =3D bbatt_delta;


--=20
Greetings, Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2009-01-24 21:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200901242236.58641.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=bcm43xx-dev@lists.berlios.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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;
as well as URLs for NNTP newsgroup(s).