diff options
author | Ming Lei <tom.leiming@gmail.com> | 2008-02-24 05:41:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:55 -0400 |
commit | cdc97792289179974af6dda781c855696358d307 (patch) | |
tree | d633d7e5bd0b14b7581e20790c1a83baadfad80c /drivers/usb/serial/digi_acceleport.c | |
parent | a5b6f60c5a30c494017c7a2d11c4067f90d3d0df (diff) |
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>
Diffstat (limited to 'drivers/usb/serial/digi_acceleport.c')
-rw-r--r-- | drivers/usb/serial/digi_acceleport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index c7cbc02f1a7..d17d1645714 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -1227,7 +1227,7 @@ static int digi_write(struct usb_serial_port *port, const unsigned char *buf, in | |||
1227 | static void digi_write_bulk_callback(struct urb *urb) | 1227 | static void digi_write_bulk_callback(struct urb *urb) |
1228 | { | 1228 | { |
1229 | 1229 | ||
1230 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1230 | struct usb_serial_port *port = urb->context; |
1231 | struct usb_serial *serial; | 1231 | struct usb_serial *serial; |
1232 | struct digi_port *priv; | 1232 | struct digi_port *priv; |
1233 | struct digi_serial *serial_priv; | 1233 | struct digi_serial *serial_priv; |
@@ -1605,7 +1605,7 @@ static void digi_shutdown(struct usb_serial *serial) | |||
1605 | 1605 | ||
1606 | static void digi_read_bulk_callback(struct urb *urb) | 1606 | static void digi_read_bulk_callback(struct urb *urb) |
1607 | { | 1607 | { |
1608 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1608 | struct usb_serial_port *port = urb->context; |
1609 | struct digi_port *priv; | 1609 | struct digi_port *priv; |
1610 | struct digi_serial *serial_priv; | 1610 | struct digi_serial *serial_priv; |
1611 | int ret; | 1611 | int ret; |
@@ -1664,7 +1664,7 @@ static void digi_read_bulk_callback(struct urb *urb) | |||
1664 | static int digi_read_inb_callback(struct urb *urb) | 1664 | static int digi_read_inb_callback(struct urb *urb) |
1665 | { | 1665 | { |
1666 | 1666 | ||
1667 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1667 | struct usb_serial_port *port = urb->context; |
1668 | struct tty_struct *tty = port->tty; | 1668 | struct tty_struct *tty = port->tty; |
1669 | struct digi_port *priv = usb_get_serial_port_data(port); | 1669 | struct digi_port *priv = usb_get_serial_port_data(port); |
1670 | int opcode = ((unsigned char *)urb->transfer_buffer)[0]; | 1670 | int opcode = ((unsigned char *)urb->transfer_buffer)[0]; |
@@ -1754,7 +1754,7 @@ static int digi_read_inb_callback(struct urb *urb) | |||
1754 | static int digi_read_oob_callback(struct urb *urb) | 1754 | static int digi_read_oob_callback(struct urb *urb) |
1755 | { | 1755 | { |
1756 | 1756 | ||
1757 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1757 | struct usb_serial_port *port = urb->context; |
1758 | struct usb_serial *serial = port->serial; | 1758 | struct usb_serial *serial = port->serial; |
1759 | struct digi_port *priv = usb_get_serial_port_data(port); | 1759 | struct digi_port *priv = usb_get_serial_port_data(port); |
1760 | int opcode, line, status, val; | 1760 | int opcode, line, status, val; |