USB: remove unnecessary type casting of urb->context
urb->context code cleanup Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a5b6f60c5a
commit
cdc9779228
@@ -154,7 +154,7 @@ MODULE_DEVICE_TABLE(usb, iowarrior_ids);
|
||||
*/
|
||||
static void iowarrior_callback(struct urb *urb)
|
||||
{
|
||||
struct iowarrior *dev = (struct iowarrior *)urb->context;
|
||||
struct iowarrior *dev = urb->context;
|
||||
int intr_idx;
|
||||
int read_idx;
|
||||
int aux_idx;
|
||||
@@ -230,7 +230,7 @@ static void iowarrior_write_callback(struct urb *urb)
|
||||
struct iowarrior *dev;
|
||||
int status = urb->status;
|
||||
|
||||
dev = (struct iowarrior *)urb->context;
|
||||
dev = urb->context;
|
||||
/* sync/async unlink faults aren't errors */
|
||||
if (status &&
|
||||
!(status == -ENOENT ||
|
||||
|
||||
Reference in New Issue
Block a user