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/io_ti.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/io_ti.c')
-rw-r--r-- | drivers/usb/serial/io_ti.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 0d412ede839a..05e4fa730730 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -1710,7 +1710,7 @@ static void handle_new_lsr (struct edgeport_port *edge_port, int lsr_data, __u8 | |||
1710 | 1710 | ||
1711 | static void edge_interrupt_callback (struct urb *urb) | 1711 | static void edge_interrupt_callback (struct urb *urb) |
1712 | { | 1712 | { |
1713 | struct edgeport_serial *edge_serial = (struct edgeport_serial *)urb->context; | 1713 | struct edgeport_serial *edge_serial = urb->context; |
1714 | struct usb_serial_port *port; | 1714 | struct usb_serial_port *port; |
1715 | struct edgeport_port *edge_port; | 1715 | struct edgeport_port *edge_port; |
1716 | unsigned char *data = urb->transfer_buffer; | 1716 | unsigned char *data = urb->transfer_buffer; |
@@ -1803,7 +1803,7 @@ exit: | |||
1803 | 1803 | ||
1804 | static void edge_bulk_in_callback (struct urb *urb) | 1804 | static void edge_bulk_in_callback (struct urb *urb) |
1805 | { | 1805 | { |
1806 | struct edgeport_port *edge_port = (struct edgeport_port *)urb->context; | 1806 | struct edgeport_port *edge_port = urb->context; |
1807 | unsigned char *data = urb->transfer_buffer; | 1807 | unsigned char *data = urb->transfer_buffer; |
1808 | struct tty_struct *tty; | 1808 | struct tty_struct *tty; |
1809 | int retval = 0; | 1809 | int retval = 0; |
@@ -1897,7 +1897,7 @@ static void edge_tty_recv(struct device *dev, struct tty_struct *tty, unsigned c | |||
1897 | 1897 | ||
1898 | static void edge_bulk_out_callback (struct urb *urb) | 1898 | static void edge_bulk_out_callback (struct urb *urb) |
1899 | { | 1899 | { |
1900 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1900 | struct usb_serial_port *port = urb->context; |
1901 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 1901 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
1902 | int status = urb->status; | 1902 | int status = urb->status; |
1903 | 1903 | ||