Skip to contentSkip to conversation

rapidio/rio_cm: Remove an unused variable 'rc'

PATCH New Yang Li 1 participant 1 message Apr 2, 2021 Rapidio

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 rapidio/rio_cm: Remove an unused variable 'rc'

Fixes the following W=1 kernel build warning(s):
drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used

---
 drivers/rapidio/rio_cm.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/rapidio/rio_cm.c +2 -3
index 50ec53d..c6fd181 100644
@@ -670,13 +670,12 @@ static void rio_txcq_handler(struct cm_dev *cm, int slot)
 	 */
 	if (!list_empty(&cm->tx_reqs) && (cm->tx_cnt < RIOCM_TX_RING_SIZE)) {
 		struct tx_req *req, *_req;
-		int rc;
 
 		list_for_each_entry_safe(req, _req, &cm->tx_reqs, node) {
 			list_del(&req->node);
 			cm->tx_buf[cm->tx_slot] = req->buffer;
-			rc = rio_add_outb_message(cm->mport, req->rdev, cmbox,
-						  req->buffer, req->len);
+			rio_add_outb_message(cm->mport, req->rdev, cmbox,
+					     req->buffer, req->len);
 			kfree(req->buffer);
 			kfree(req);
 
Signature · 1 line
1.8.3.1