usb: cdns3: remove redundant assignment to pointer trb
authorColin Ian King <colin.king@canonical.com>
Sat, 8 Feb 2020 16:18:02 +0000 (16:18 +0000)
committerFelipe Balbi <balbi@kernel.org>
Sun, 15 Mar 2020 09:06:39 +0000 (11:06 +0200)
Pointer trb being assigned with a value that is never read, it is
assigned a new value later on. The assignment is redundant and
can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/cdns3/gadget.c

index 3574dbb..372460e 100644 (file)
@@ -1380,7 +1380,7 @@ static bool cdns3_request_handled(struct cdns3_endpoint *priv_ep,
                                  struct cdns3_request *priv_req)
 {
        struct cdns3_device *priv_dev = priv_ep->cdns3_dev;
-       struct cdns3_trb *trb = priv_req->trb;
+       struct cdns3_trb *trb;
        int current_index = 0;
        int handled = 0;
        int doorbell;