aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-13 06:45:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-13 09:41:55 -0400
commita7d8205eaee70b55b0fe45fbd77c11e1ad3d7a7e (patch)
tree1ceb166e8d661676180adcabc767acbfee57dd05
parent5f9810730cf4c0315f30e2fa0daf273fb2d3cadb (diff)
usb: usbip: remove redundant pointer ep
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>
-rw-r--r--drivers/usb/usbip/vudc_dev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/usbip/vudc_dev.c b/drivers/usb/usbip/vudc_dev.c
index 1b9a4f87db59..1634d8698e15 100644
--- a/drivers/usb/usbip/vudc_dev.c
+++ b/drivers/usb/usbip/vudc_dev.c
@@ -279,12 +279,10 @@ static int vep_disable(struct usb_ep *_ep)
279static struct usb_request *vep_alloc_request(struct usb_ep *_ep, 279static struct usb_request *vep_alloc_request(struct usb_ep *_ep,
280 gfp_t mem_flags) 280 gfp_t mem_flags)
281{ 281{
282 struct vep *ep;
283 struct vrequest *req; 282 struct vrequest *req;
284 283
285 if (!_ep) 284 if (!_ep)
286 return NULL; 285 return NULL;
287 ep = to_vep(_ep);
288 286
289 req = kzalloc(sizeof(*req), mem_flags); 287 req = kzalloc(sizeof(*req), mem_flags);
290 if (!req) 288 if (!req)