OSDN Git Service

usb: usbip: remove redundant pointer ep
authorColin Ian King <colin.king@canonical.com>
Fri, 13 Jul 2018 10:45:01 +0000 (11:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Jul 2018 13:41:55 +0000 (15:41 +0200)
Pointer ep is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'ep' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc_dev.c

index 1b9a4f8..1634d86 100644 (file)
@@ -279,12 +279,10 @@ static int vep_disable(struct usb_ep *_ep)
 static struct usb_request *vep_alloc_request(struct usb_ep *_ep,
                gfp_t mem_flags)
 {
-       struct vep *ep;
        struct vrequest *req;
 
        if (!_ep)
                return NULL;
-       ep = to_vep(_ep);
 
        req = kzalloc(sizeof(*req), mem_flags);
        if (!req)