lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 28 Jan 2015 23:42:40 +0100 From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se> To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Vincenzo Scotti <vinc94@...il.com> Cc: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>, Roberta Dobrescu <roberta.dobrescu@...il.com>, Sachin Kamat <sachin.kamat@...sung.com>, Simon Horman <horms+renesas@...ge.net.au>, Ebru Akagunduz <ebru.akagunduz@...il.com>, Magnus Damm <damm+renesas@...nsource.se>, devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org Subject: [PATCH] staging: emxx_udc: emxx_udc: Removed variables that is never used Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se> --- drivers/staging/emxx_udc/emxx_udc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index eb178fc..b916fab 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -2974,10 +2974,10 @@ static int nbu2ss_ep_fifo_status(struct usb_ep *_ep) spin_lock_irqsave(&udc->lock, flags); if (ep->epnum == 0) { - data = _nbu2ss_readl(&preg->EP0_LENGTH) & EP0_LDATA; + _nbu2ss_readl(&preg->EP0_LENGTH) & EP0_LDATA; } else { - data = _nbu2ss_readl(&preg->EP_REGS[ep->epnum-1].EP_LEN_DCNT) + _nbu2ss_readl(&preg->EP_REGS[ep->epnum-1].EP_LEN_DCNT) & EPn_LDATA; } @@ -3264,12 +3264,11 @@ static void __init nbu2ss_drv_set_ep_info( if (isdigit(name[2])) { long num; - int res; char tempbuf[2]; tempbuf[0] = name[2]; tempbuf[1] = '\0'; - res = kstrtol(tempbuf, 16, &num); + kstrtol(tempbuf, 16, &num); if (num == 0) ep->ep.maxpacket = EP0_PACKETSIZE; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists