diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-16 07:40:10 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-09-17 18:05:30 +0200 |
commit | 1b97be8ce4847be9cceb1f80c87868131e9cc8e7 (patch) | |
tree | 4157c850c4c24c6a3fed556909599f831a4d808a /drivers/usb | |
parent | usb: dwc3: gadget: avoid memory leak when failing to allocate all eps (diff) | |
download | linux-1b97be8ce4847be9cceb1f80c87868131e9cc8e7.tar.xz linux-1b97be8ce4847be9cceb1f80c87868131e9cc8e7.zip |
usb: phy: omap-usb3: Fix return value
The function returns a pointer. Hence return NULL instead of 0.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/phy/phy-omap-usb3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-omap-usb3.c b/drivers/usb/phy/phy-omap-usb3.c index fc15694d3031..4e8a0405f956 100644 --- a/drivers/usb/phy/phy-omap-usb3.c +++ b/drivers/usb/phy/phy-omap-usb3.c @@ -79,7 +79,7 @@ static struct usb_dpll_params *omap_usb3_get_dpll_params(unsigned long rate) return &dpll_map[i].params; } - return 0; + return NULL; } static int omap_usb3_suspend(struct usb_phy *x, int suspend) |