[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220506175349.10102-1-piyush.mehta@xilinx.com>
Date: Fri, 6 May 2022 23:23:49 +0530
From: Piyush Mehta <piyush.mehta@...inx.com>
To: <balbi@...nel.org>, <gregkh@...uxfoundation.org>,
Michal Simek <michal.simek@...inx.com>,
<shubhrajyoti.datta@...inx.com>, <lee.jones@...aro.org>,
<christophe.jaillet@...adoo.fr>, <szymon.heidrich@...il.com>,
<jakobkoschel@...il.com>, <linux-usb@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
CC: <radheys@...inx.com>, <git@...inx.com>, <sivadur@...inx.com>,
Piyush Mehta <piyush.mehta@...inx.com>
Subject: [PATCH] usb: gadget: udc: Remove useless variable assignment in xudc_read_fifo()
This patch removes the unused variables assignment warning.
Value assigned to variable bufferspace is overwritten, before
it can be used. This makes such variable assignment useless.
Reported Coverity warning: UNUSED_VALUE
Signed-off-by: Piyush Mehta <piyush.mehta@...inx.com>
---
drivers/usb/gadget/udc/udc-xilinx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c
index 9369801..adfa1ab 100644
--- a/drivers/usb/gadget/udc/udc-xilinx.c
+++ b/drivers/usb/gadget/udc/udc-xilinx.c
@@ -632,7 +632,7 @@ static int xudc_read_fifo(struct xusb_ep *ep, struct xusb_req *req)
dev_dbg(udc->dev, "read %s, %d bytes%s req %p %d/%d\n",
ep->ep_usb.name, count, is_short ? "/S" : "", req,
req->usb_req.actual, req->usb_req.length);
- bufferspace -= count;
+
/* Completion */
if ((req->usb_req.actual == req->usb_req.length) || is_short) {
if (udc->dma_enabled && req->usb_req.length)
--
2.7.4
Powered by blists - more mailing lists