Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: host: isp1362-hcd: remove a couple of redundant assignments

Variable index is being initialized and the value is never read,
it is being updated a few statements later, so remove the redundant
initialization. Variable total is being updated but the value is
never read, so this is also redundant and can be removed. Cleans
up two clang warnings:

drivers/usb/host/isp1362-hcd.c:715:6: warning: Value stored to
'index' during its initialization is never read
drivers/usb/host/isp1362-hcd.c:2254:2: warning: Value stored to
'total' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
15dfeb6d 8444efc4

+1 -2
+1 -2
drivers/usb/host/isp1362-hcd.c
··· 713 713 static int submit_req(struct isp1362_hcd *isp1362_hcd, struct urb *urb, 714 714 struct isp1362_ep *ep, struct isp1362_ep_queue *epq) 715 715 { 716 - int index = epq->free_ptd; 716 + int index; 717 717 718 718 prepare_ptd(isp1362_hcd, urb, ep, epq, 0); 719 719 index = claim_ptd_buffers(epq, ep, ep->length); ··· 2253 2253 return -ENOMEM; 2254 2254 } 2255 2255 2256 - total = istl_size + intl_size + atl_size; 2257 2256 spin_lock_irqsave(&isp1362_hcd->lock, flags); 2258 2257 2259 2258 for (i = 0; i < 2; i++) {