Commit 9a5a3e95 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: atm: speedtch: clean up urb->status usage

This done in anticipation of removal of urb->status, which will make
that patch easier to review and apply in the future.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c35f68a0
...@@ -612,7 +612,8 @@ static void speedtch_handle_int(struct urb *int_urb) ...@@ -612,7 +612,8 @@ static void speedtch_handle_int(struct urb *int_urb)
struct speedtch_instance_data *instance = int_urb->context; struct speedtch_instance_data *instance = int_urb->context;
struct usbatm_data *usbatm = instance->usbatm; struct usbatm_data *usbatm = instance->usbatm;
unsigned int count = int_urb->actual_length; unsigned int count = int_urb->actual_length;
int ret = int_urb->status; int status = int_urb->status;
int ret;
/* The magic interrupt for "up state" */ /* The magic interrupt for "up state" */
static const unsigned char up_int[6] = { 0xa1, 0x00, 0x01, 0x00, 0x00, 0x00 }; static const unsigned char up_int[6] = { 0xa1, 0x00, 0x01, 0x00, 0x00, 0x00 };
...@@ -621,8 +622,8 @@ static void speedtch_handle_int(struct urb *int_urb) ...@@ -621,8 +622,8 @@ static void speedtch_handle_int(struct urb *int_urb)
atm_dbg(usbatm, "%s entered\n", __func__); atm_dbg(usbatm, "%s entered\n", __func__);
if (ret < 0) { if (status < 0) {
atm_dbg(usbatm, "%s: nonzero urb status %d!\n", __func__, ret); atm_dbg(usbatm, "%s: nonzero urb status %d!\n", __func__, status);
goto fail; goto fail;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment