]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.
authorYan Laijun <yan.laijun@gmail.com>
Mon, 5 Dec 2016 13:21:39 +0000 (21:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Dec 2016 09:18:07 +0000 (10:18 +0100)
Fixed checkpatch warning "line over 80 characters" in
wlan-ng/hfa384x_usb.c file.

Signed-off-by: Yan Laijun <yan.laijun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x_usb.c

index 5f11f6ef8cbd8f2192737f7ee79fbd0fec905b70..4fe037aeef12975e56919e0cc01e4e472f4fe415 100644 (file)
@@ -3037,7 +3037,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
 {
        struct wlandevice *wlandev = urb->context;
        struct hfa384x *hw;
-       union hfa384x_usbin *usbin = (union hfa384x_usbin *)urb->transfer_buffer;
+       union hfa384x_usbin *usbin;
        struct sk_buff *skb = NULL;
        int result;
        int urb_status;
@@ -3139,6 +3139,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
        /* Note: the check of the sw_support field, the type field doesn't
         *       have bit 12 set like the docs suggest.
         */
+       usbin = (union hfa384x_usbin *)urb->transfer_buffer;
        type = le16_to_cpu(usbin->type);
        if (HFA384x_USB_ISRXFRM(type)) {
                if (action == HANDLE) {