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/omninet.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/omninet.c')
-rw-r--r-- | drivers/usb/serial/omninet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 10090cb52d31..7b7422f49478 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -194,7 +194,7 @@ static void omninet_close (struct usb_serial_port *port, struct file * filp) | |||
194 | 194 | ||
195 | static void omninet_read_bulk_callback (struct urb *urb) | 195 | static void omninet_read_bulk_callback (struct urb *urb) |
196 | { | 196 | { |
197 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 197 | struct usb_serial_port *port = urb->context; |
198 | unsigned char *data = urb->transfer_buffer; | 198 | unsigned char *data = urb->transfer_buffer; |
199 | struct omninet_header *header = (struct omninet_header *) &data[0]; | 199 | struct omninet_header *header = (struct omninet_header *) &data[0]; |
200 | int status = urb->status; | 200 | int status = urb->status; |
@@ -309,7 +309,7 @@ static int omninet_write_room (struct usb_serial_port *port) | |||
309 | static void omninet_write_bulk_callback (struct urb *urb) | 309 | static void omninet_write_bulk_callback (struct urb *urb) |
310 | { | 310 | { |
311 | /* struct omninet_header *header = (struct omninet_header *) urb->transfer_buffer; */ | 311 | /* struct omninet_header *header = (struct omninet_header *) urb->transfer_buffer; */ |
312 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; | 312 | struct usb_serial_port *port = urb->context; |
313 | int status = urb->status; | 313 | int status = urb->status; |
314 | 314 | ||
315 | dbg("%s - port %0x\n", __func__, port->number); | 315 | dbg("%s - port %0x\n", __func__, port->number); |