diff options
author | Ben Chan <benchan@chromium.org> | 2012-11-27 04:18:45 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-27 17:18:15 (GMT) |
commit | a7e4a982fe2a9375952798294ebfb38dc0ed6782 (patch) | |
tree | 56d3d79eb59c8bf53054bc9ff3feacf0910edff6 /drivers/staging/gdm72xx | |
parent | 1b94242a692efa52656c8cb544f5cb87d1b3056f (diff) | |
download | linux-a7e4a982fe2a9375952798294ebfb38dc0ed6782.tar.xz |
staging: gdm72xx: fix unused variable warning in gdm_usb_send
This patch fixes an unused variable warning in gdm_usb_send
(when CONFIG_WIMAX_GDM72XX_K_MODE=n), which was introduced in
commit 1a276b80466bbd195cf94ec7178f68f2ab351467 (staging:
gdm72xx: protect access of rx / tx structs).
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Ben Chan <benchan@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r-- | drivers/staging/gdm72xx/gdm_usb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/gdm72xx/gdm_usb.c b/drivers/staging/gdm72xx/gdm_usb.c index 4426941..3709824 100644 --- a/drivers/staging/gdm72xx/gdm_usb.c +++ b/drivers/staging/gdm72xx/gdm_usb.c @@ -316,7 +316,10 @@ static int gdm_usb_send(void *priv_dev, void *data, int len, int no_spc = 0, ret; u8 *pkt = data; u16 cmd_evt; - unsigned long flags, flags2; + unsigned long flags; +#ifdef CONFIG_WIMAX_GDM72XX_K_MODE + unsigned long flags2; +#endif /* CONFIG_WIMAX_GDM72XX_K_MODE */ if (!udev->usbdev) { dev_err(&usbdev->dev, "%s: No such device\n", __func__); |