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
@ -545,7 +545,7 @@ static void option_indat_callback(struct urb *urb)
|
||||
dbg("%s: %p", __func__, urb);
|
||||
|
||||
endpoint = usb_pipeendpoint(urb->pipe);
|
||||
port = (struct usb_serial_port *) urb->context;
|
||||
port = urb->context;
|
||||
|
||||
if (status) {
|
||||
dbg("%s: nonzero status: %d on endpoint %02x.",
|
||||
@ -579,7 +579,7 @@ static void option_outdat_callback(struct urb *urb)
|
||||
|
||||
dbg("%s", __func__);
|
||||
|
||||
port = (struct usb_serial_port *) urb->context;
|
||||
port = urb->context;
|
||||
|
||||
usb_serial_port_softint(port);
|
||||
|
||||
@ -597,7 +597,7 @@ static void option_instat_callback(struct urb *urb)
|
||||
{
|
||||
int err;
|
||||
int status = urb->status;
|
||||
struct usb_serial_port *port = (struct usb_serial_port *) urb->context;
|
||||
struct usb_serial_port *port = urb->context;
|
||||
struct option_port_private *portdata = usb_get_serial_port_data(port);
|
||||
struct usb_serial *serial = port->serial;
|
||||
|
||||
|
Reference in New Issue
Block a user