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/whiteheat.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/whiteheat.c')
-rw-r--r-- | drivers/usb/serial/whiteheat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 6926a81a0ccd..e96bf8663ffc 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -965,7 +965,7 @@ static void command_port_write_callback(struct urb *urb) | |||
965 | 965 | ||
966 | static void command_port_read_callback(struct urb *urb) | 966 | static void command_port_read_callback(struct urb *urb) |
967 | { | 967 | { |
968 | struct usb_serial_port *command_port = (struct usb_serial_port *)urb->context; | 968 | struct usb_serial_port *command_port = urb->context; |
969 | struct whiteheat_command_private *command_info; | 969 | struct whiteheat_command_private *command_info; |
970 | int status = urb->status; | 970 | int status = urb->status; |
971 | unsigned char *data = urb->transfer_buffer; | 971 | unsigned char *data = urb->transfer_buffer; |
@@ -1015,7 +1015,7 @@ static void command_port_read_callback(struct urb *urb) | |||
1015 | 1015 | ||
1016 | static void whiteheat_read_callback(struct urb *urb) | 1016 | static void whiteheat_read_callback(struct urb *urb) |
1017 | { | 1017 | { |
1018 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1018 | struct usb_serial_port *port = urb->context; |
1019 | struct whiteheat_urb_wrap *wrap; | 1019 | struct whiteheat_urb_wrap *wrap; |
1020 | unsigned char *data = urb->transfer_buffer; | 1020 | unsigned char *data = urb->transfer_buffer; |
1021 | struct whiteheat_private *info = usb_get_serial_port_data(port); | 1021 | struct whiteheat_private *info = usb_get_serial_port_data(port); |
@@ -1059,7 +1059,7 @@ static void whiteheat_read_callback(struct urb *urb) | |||
1059 | 1059 | ||
1060 | static void whiteheat_write_callback(struct urb *urb) | 1060 | static void whiteheat_write_callback(struct urb *urb) |
1061 | { | 1061 | { |
1062 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1062 | struct usb_serial_port *port = urb->context; |
1063 | struct whiteheat_private *info = usb_get_serial_port_data(port); | 1063 | struct whiteheat_private *info = usb_get_serial_port_data(port); |
1064 | struct whiteheat_urb_wrap *wrap; | 1064 | struct whiteheat_urb_wrap *wrap; |
1065 | int status = urb->status; | 1065 | int status = urb->status; |