summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/omap_udc.c
diff options
context:
space:
mode:
authorChao Xie <chao.xie@marvell.com>2013-01-24 07:38:30 +0100
committerFelipe Balbi <balbi@ti.com>2013-01-24 20:11:34 +0100
commit449d04a977f63e6218d88312f9bd3cb53fb5d30b (patch)
tree8e0eef406184057c7bf15c78e547fdaaa4a7c259 /drivers/usb/gadget/omap_udc.c
parentusb: host: ehci-mv: remove unused variable (diff)
downloadlinux-449d04a977f63e6218d88312f9bd3cb53fb5d30b.tar.xz
linux-449d04a977f63e6218d88312f9bd3cb53fb5d30b.zip
usb: gadget: mv_udc: fix the value of tranceiver
usally we will use udc->tranceiver == NULL or udc->tranceiver != NULL. So when failed to get the udc->tranceiver by usb_get_phy(), we directly set udc->tranceiver to be NULL. Then the source code will not need macro IS_ERR_OR_NULL() for udc->tranceiver judgement. It can reduce the line size and make the judgement simple. Signed-off-by: Chao Xie <chao.xie@marvell.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/omap_udc.c')
0 files changed, 0 insertions, 0 deletions