Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1410350 > unrolled thread

[PATCH] staging: gdm724x: gdm_usb: Remove ignored value

Started byLuis de Bethencourt <luisbg@osg.samsung.com>
First post2016-05-31 16:40 +0200
Last post2016-05-31 16:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: gdm724x: gdm_usb: Remove ignored value Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-05-31 16:40 +0200

#1410350 — [PATCH] staging: gdm724x: gdm_usb: Remove ignored value

FromLuis de Bethencourt <luisbg@osg.samsung.com>
Date2016-05-31 16:40 +0200
Subject[PATCH] staging: gdm724x: gdm_usb: Remove ignored value
Message-ID<rESZP-3TI-21@gated-at.bofh.it>
The value assigned to ret will be overwritten before it could be read in a
future iteration of the loop. Removing the unnecessary assignment.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
 drivers/staging/gdm724x/gdm_usb.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/gdm724x/gdm_usb.c b/drivers/staging/gdm724x/gdm_usb.c
index d650d77..15a7e81 100644
--- a/drivers/staging/gdm724x/gdm_usb.c
+++ b/drivers/staging/gdm724x/gdm_usb.c
@@ -415,10 +415,10 @@ static void do_rx(struct work_struct *work)
 		switch (cmd_evt) {
 		case LTE_GET_INFORMATION_RESULT:
 			if (set_mac_address(hci->data, r->cb_data) == 0) {
-				ret = r->callback(r->cb_data,
-						  r->buf,
-						  r->urb->actual_length,
-						  KERNEL_THREAD);
+				r->callback(r->cb_data,
+					    r->buf,
+					    r->urb->actual_length,
+					    KERNEL_THREAD);
 			}
 			break;
 
-- 
2.5.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web