[PATCH -next] usb: gadget: Fix return value check in r8a66597_probe()

2014-07-19 Thread weiyj_lk
From: Wei Yongjun In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/usb/gadget/udc/r8a66597-udc.c | 4 ++-- 1 file changed, 2 insertio

Re: [PATCH -next] usb: gadget: Fix return value check in r8a66597_probe()

2014-07-20 Thread Laurent Pinchart
Hi Wei, Thank you for the patch. On Sunday 20 July 2014 11:41:53 weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). > > Si