usb: host: u132-hcd: remove unneeded variable frame
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Wed, 5 Jun 2019 14:18:42 +0000 (19:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 06:59:19 +0000 (08:59 +0200)
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 <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/u132-hcd.c

index 4a5c9b599c577f44ff55417537446881c9c52aaa..400c40bc43a6fb676c21249a4e84965a1b16e38e 100644 (file)
@@ -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;
        }
 }