staging: gdm724x: gdm_usb: Remove ignored value

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Luis de Bethencourt 2016-05-31 15:39:13 +01:00 committed by Greg Kroah-Hartman
parent de55b42d8d
commit 49bb9af078
1 changed files with 4 additions and 4 deletions

View File

@ -415,10 +415,10 @@ static void do_rx(struct work_struct *work)
switch (cmd_evt) { switch (cmd_evt) {
case LTE_GET_INFORMATION_RESULT: case LTE_GET_INFORMATION_RESULT:
if (set_mac_address(hci->data, r->cb_data) == 0) { if (set_mac_address(hci->data, r->cb_data) == 0) {
ret = r->callback(r->cb_data, r->callback(r->cb_data,
r->buf, r->buf,
r->urb->actual_length, r->urb->actual_length,
KERNEL_THREAD); KERNEL_THREAD);
} }
break; break;