From: Hariprasad Kelam Date: Wed, 5 Jun 2019 14:18:42 +0000 (+0530) Subject: usb: host: u132-hcd: remove unneeded variable frame X-Git-Tag: v5.3-rc1~124^2~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e016249f6877eb279da6369f182e4c9efe88cab;p=thirdparty%2Flinux.git usb: host: u132-hcd: remove unneeded variable frame This patch fixes below issue reported by coccicheck drivers/usb/host/u132-hcd.c:2557:6-11: Unneeded variable: "frame". Return "0" on line 2560 Signed-off-by: Hariprasad Kelam Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index 4a5c9b599c577..400c40bc43a6f 100644 --- a/drivers/usb/host/u132-hcd.c +++ b/drivers/usb/host/u132-hcd.c @@ -2554,10 +2554,9 @@ static int u132_get_frame(struct usb_hcd *hcd) dev_err(&u132->platform_dev->dev, "device is being removed\n"); return -ESHUTDOWN; } else { - int frame = 0; dev_err(&u132->platform_dev->dev, "TODO: u132_get_frame\n"); mdelay(100); - return frame; + return 0; } }