summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea
diff options
context:
space:
mode:
authorkbuild test robot <fengguang.wu@intel.com>2015-03-25 07:23:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 10:44:37 +0100
commit1fcefbdf06708a5811ffa8acc949714aee60ae13 (patch)
tree57e19e835c92683131e490c620a2ba83145c74a0 /drivers/usb/chipidea
parentMerge tag 'usb-for-v4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/bal... (diff)
downloadlinux-1fcefbdf06708a5811ffa8acc949714aee60ae13.tar.xz
linux-1fcefbdf06708a5811ffa8acc949714aee60ae13.zip
usb: chipidea: usbmisc_imx: fix returnvar.cocci warnings
drivers/usb/chipidea/usbmisc_imx.c:277:5-8: Unneeded variable: "ret". Return "0" on line 297 Removes unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Cc: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea')
-rw-r--r--drivers/usb/chipidea/usbmisc_imx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
index 8af070f15d3e..140945cb124f 100644
--- a/drivers/usb/chipidea/usbmisc_imx.c
+++ b/drivers/usb/chipidea/usbmisc_imx.c
@@ -274,7 +274,6 @@ static int usbmisc_imx6sx_init(struct imx_usbmisc_data *data)
unsigned long flags;
struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
u32 val;
- int ret = 0;
usbmisc_imx6q_init(data);
@@ -294,7 +293,7 @@ static int usbmisc_imx6sx_init(struct imx_usbmisc_data *data)
spin_unlock_irqrestore(&usbmisc->lock, flags);
}
- return ret;
+ return 0;
}
static int usbmisc_vf610_init(struct imx_usbmisc_data *data)