usb: gadget: fsl_qe_udc: signedness bug in qe_get_frame()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Jul 2016 11:15:47 +0000 (14:15 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 22 Aug 2016 07:45:12 +0000 (10:45 +0300)
commitf4693b08cc901912a87369c46537b94ed4084ea0
treeabb1fb8d5e66caf9ec67ab08d774fa78d0ad72ef
parent80d1642d7640ef00d8823f17a529785331aceb96
usb: gadget: fsl_qe_udc: signedness bug in qe_get_frame()

We can't assign -EINVAL to a u16.

Fixes: 3948f0e0c999 ('usb: add Freescale QE/CPM USB peripheral controller driver')
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/fsl_qe_udc.c