]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: fsl_qe_udc: fix IS_ERR_VALUE usage
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 15 Feb 2016 14:35:25 +0000 (15:35 +0100)
committerFelipe Balbi <balbi@kernel.org>
Wed, 17 Feb 2016 14:32:44 +0000 (16:32 +0200)
commitd714eadaeb33b606a42c2ea1e71d9dba6e9bfd0f
treea4acd56c06c06f87a07d420cf4779f05d2f8cc70
parent3f0865470f128ef96efd3e489da6f759b2d5daa2
usb: gadget: fsl_qe_udc: fix IS_ERR_VALUE usage

IS_ERR_VALUE macro should be used only with unsigned long type.
Otherwise it can work incorrectly.

The patch follows conclusion from discussion on LKML [1][2].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2120927
[2]: http://permalink.gmane.org/gmane.linux.kernel/2150581

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/fsl_qe_udc.c