usb: gadget: fix ptr_ret.cocci warnings
authorFengguang Wu <fengguang.wu@intel.com>
Wed, 29 Oct 2014 14:18:55 +0000 (22:18 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:24 +0000 (10:01 -0600)
commita2655e4a8edb66d21b0967940172e83a51d30ef3
tree329335675429de2e210be869ed882aac8e6679e7
parent8b920f16e69550d3f6c7c67dc3cef42aafca498d
usb: gadget: fix ptr_ret.cocci warnings

drivers/usb/gadget/udc/r8a66597-udc.c:1849:1-3: WARNING: PTR_ERR_OR_ZERO can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/r8a66597-udc.c