usb: usbip:checkpatch; fix bare use of unsigned
authorJai Krishna <rjk1024@gmail.com>
Tue, 25 Oct 2016 09:02:32 +0000 (14:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 14:59:59 +0000 (16:59 +0200)
This patch fixes the following checkpatch warning for usbip files
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Jai Krishna <rjk1024@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc_dev.c
drivers/usb/usbip/vudc_transfer.c

index 7091848df6c8b54579c231181cfb8be32fa30498..c5375e74ffc59df1330162a7cd1c447e0e8f06fd 100644 (file)
@@ -242,10 +242,10 @@ static const struct usb_gadget_ops vgadget_ops = {
 static int vep_enable(struct usb_ep *_ep,
                const struct usb_endpoint_descriptor *desc)
 {
-       struct vep *ep;
-       struct vudc *udc;
-       unsigned maxp;
-       unsigned long flags;
+       struct vep      *ep;
+       struct vudc     *udc;
+       unsigned int    maxp;
+       unsigned long   flags;
 
        ep = to_vep(_ep);
        udc = ep_to_vudc(ep);
index aba6bd478045113524935ccdd0055ffb4996e9eb..8b3dacc9018300daec2d07bb3e02c8d07eb0c77f 100644 (file)
@@ -73,8 +73,8 @@ static int handle_control_request(struct vudc *udc, struct urb *urb,
 {
        struct vep      *ep2;
        int             ret_val = 1;
-       unsigned        w_index;
-       unsigned        w_value;
+       unsigned int    w_index;
+       unsigned int    w_value;
 
        w_index = le16_to_cpu(setup->wIndex);
        w_value = le16_to_cpu(setup->wValue);
@@ -200,7 +200,7 @@ static int transfer(struct vudc *udc,
 top:
        /* if there's no request queued, the device is NAKing; return */
        list_for_each_entry(req, &ep->req_queue, req_entry) {
-               unsigned        host_len, dev_len, len;
+               unsigned int    host_len, dev_len, len;
                void            *ubuf_pos, *rbuf_pos;
                int             is_short, to_host;
                int             rescan = 0;