From: Manish Katiyar Date: Mon, 13 Oct 2008 10:52:42 +0000 (+0530) Subject: libertas : Remove unused variable warning for "old_channel" from cmd.c X-Git-Tag: v2.6.28-rc1~292^2~3^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=96d46d5d792d96f80e9bd274ab6d433b8a3c22bc;p=linux-2.6-omap-h63xx.git libertas : Remove unused variable warning for "old_channel" from cmd.c 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 Acked-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index a912fb68c09..297696de2da 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c @@ -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);