From: Wei Yongjun Date: Sun, 20 Jul 2014 03:41:53 +0000 (+0800) Subject: usb: gadget: Fix return value check in r8a66597_probe() X-Git-Tag: omap-fixes-against-v3.17-rc3~24^2~15^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b11f88821aff3e780cb3eac3a48270551e41167;p=pandora-kernel.git usb: gadget: Fix return value check in r8a66597_probe() 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(). Acked-by: Laurent Pinchart Signed-off-by: Wei Yongjun Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed