commit | 449d04a977f63e6218d88312f9bd3cb53fb5d30b | [log] [tgz] |
---|---|---|
author | Chao Xie <chao.xie@marvell.com> | Thu Jan 24 01:38:30 2013 -0500 |
committer | Felipe Balbi <balbi@ti.com> | Thu Jan 24 21:11:34 2013 +0200 |
tree | 8e0eef406184057c7bf15c78e547fdaaa4a7c259 | |
parent | ab592a74a5519d9de2af3003a721cfe0c6684b8a [diff] |
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>