From: Himangi Saraogi Date: Tue, 4 Mar 2014 23:29:57 +0000 (+0530) Subject: staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=abe5d64d1a74195a44cd14624f8178b9f48b7cc7;p=openwrt%2Fstaging%2Fblogic.git staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer This patch fixes the following sparse warning : drivers/staging/serqt_usb2/serqt_usb2.c:727:40: warning: restricted __le16 degrades to integer Signed-off-by: Himangi Saraogi Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c index f0fcbf7c7d7f..868226953d5c 100644 --- a/drivers/staging/serqt_usb2/serqt_usb2.c +++ b/drivers/staging/serqt_usb2/serqt_usb2.c @@ -724,7 +724,7 @@ static int qt_startup(struct usb_serial *serial) goto startup_error; } - switch (serial->dev->descriptor.idProduct) { + switch (le16_to_cpu(serial->dev->descriptor.idProduct)) { case QUATECH_DSU100: case QUATECH_QSU100: case QUATECH_ESU100A: