]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: host: ehci-sched: remove useless initializations
authorGeyslan G. Bem <geyslan@gmail.com>
Tue, 26 Jan 2016 01:45:12 +0000 (22:45 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:44:05 +0000 (13:44 -0800)
This patch removes useless initializations.

Tested by compilation only.
Caught by cppcheck.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-sched.c

index f4a94d443abef1f56cc0c8d292e9912d7033afc3..b28ec83361e13c665d91d1d03e393d0217f8f9d2 100644 (file)
@@ -2132,7 +2132,7 @@ sitd_patch(
 )
 {
        struct ehci_iso_packet  *uf = &iso_sched->packet [index];
-       u64                     bufp = uf->bufp;
+       u64                     bufp;
 
        sitd->hw_next = EHCI_LIST_END(ehci);
        sitd->hw_fullspeed_ep = stream->address;
@@ -2242,7 +2242,7 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
        struct urb                              *urb = sitd->urb;
        struct usb_iso_packet_descriptor        *desc;
        u32                                     t;
-       int                                     urb_index = -1;
+       int                                     urb_index;
        struct ehci_iso_stream                  *stream = sitd->stream;
        struct usb_device                       *dev;
        bool                                    retval = false;