]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libertas : Remove unused variable warning for "old_channel" from cmd.c
authorManish Katiyar <mkatiyar@gmail.com>
Mon, 13 Oct 2008 10:52:42 +0000 (16:22 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 15 Oct 2008 01:12:03 +0000 (21:12 -0400)
Below patch removes the following warning during compilation.

drivers/net/wireless/libertas/cmd.c:826: warning: unused variable 'old_channel'

Signed-off-by : Manish Katiyar <mkatiyar@gmail.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c

index a912fb68c09990fd12bfc18360e3d9c674b79e7f..297696de2da0554543f86cf1a50be458cba82b2b 100644 (file)
@@ -823,7 +823,9 @@ int lbs_update_channel(struct lbs_private *priv)
 int lbs_set_channel(struct lbs_private *priv, u8 channel)
 {
        struct cmd_ds_802_11_rf_channel cmd;
+#ifdef DEBUG
        u8 old_channel = priv->curbssparams.channel;
+#endif
        int ret = 0;
 
        lbs_deb_enter(LBS_DEB_CMD);