[PATCH 2.6.37.2 1/1] drivers/net/usb/usbnet.c: Suppress compiler warning for unused variable.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Suppressed "Unused variable" warning by the compiler for variable uarg
in hso_serial_ioctl().

Signed-off-by: Atul Sowani <sowani@xxxxxxxxx>
---

diff a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
--- a/drivers/net/usb/hso.c     2011-02-25 04:39:00.000000000 +0530
+++ b/drivers/net/usb/hso.c     2011-02-25 23:07:46.000000000 +0530
@@ -1741,7 +1741,7 @@ static int hso_serial_ioctl(struct tty_s
                            unsigned int cmd, unsigned long arg)
 {
        struct hso_serial *serial =  get_serial_by_tty(tty);
-       void __user *uarg = (void __user *)arg;
+       void __user __maybe_unused *uarg = (void __user *)arg;
        int ret = 0;
        D4("IOCTL cmd: %d, arg: %ld", cmd, arg);
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux