aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/usbip/stub_tx.c
diff options
context:
space:
mode:
authorBart Westgeest <bart@elbrys.com>2012-10-10 13:34:25 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-22 13:36:28 -0700
commit36ac9b055fa49b9a0097ec8dfd59c5ffc812a60d (patch)
tree47896166c0dad2f629069ab2005dc36d69c16ff9 /drivers/staging/usbip/stub_tx.c
parentstaging: crystalhd: fix a style warning (diff)
downloadlinux-dev-36ac9b055fa49b9a0097ec8dfd59c5ffc812a60d.tar.xz
linux-dev-36ac9b055fa49b9a0097ec8dfd59c5ffc812a60d.zip
staging: usbip: replaced pointer arithmetic, and strongly type function return.
Replaced pointer arithmetic by using array indexing, and changed function return type for usbip_alloc_iso_desc_pdu from 'void*' to 'struct usbip_iso_packet_descriptor'. Signed-off-by: Bart Westgeest <bart@elbrys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/usbip/stub_tx.c')
-rw-r--r--drivers/staging/usbip/stub_tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/usbip/stub_tx.c b/drivers/staging/usbip/stub_tx.c
index 023fda305be2..1c37b5d888bc 100644
--- a/drivers/staging/usbip/stub_tx.c
+++ b/drivers/staging/usbip/stub_tx.c
@@ -166,7 +166,7 @@ static int stub_send_ret_submit(struct stub_device *sdev)
int ret;
struct urb *urb = priv->urb;
struct usbip_header pdu_header;
- void *iso_buffer = NULL;
+ struct usbip_iso_packet_descriptor *iso_buffer = NULL;
struct kvec *iov = NULL;
int iovnum = 0;