staging:rtl8192u: typedef struct tx_desc_cmd_819x_usb remove typedef
authorJohn Whitmore <johnfwhitmore@gmail.com>
Wed, 11 Jul 2018 19:21:44 +0000 (20:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Jul 2018 09:40:45 +0000 (11:40 +0200)
Change structure tx_desc_cmd_819x_usb from being typedef to being a simple
structure, without the typedef.

checkpatch warns about defining new types in the code.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U.h
drivers/staging/rtl8192u/r8192U_core.c

index a653a51f7b905119348e9a5ab3001b5dc8807b36..f0dae8e9cd8f5158be4f46df085ce30d37a860fe 100644 (file)
@@ -213,7 +213,7 @@ struct tx_desc_819x_usb {
        u32     Reserved7;
 };
 
-typedef struct _tx_desc_cmd_819x_usb {
+struct tx_desc_cmd_819x_usb {
        /* DWORD 0 */
        u16     Reserved0;
        u8      Reserved1;
@@ -238,7 +238,7 @@ typedef struct _tx_desc_cmd_819x_usb {
        u32     Reserved6;
        u32     Reserved7;
        u32     Reserved8;
-} tx_desc_cmd_819x_usb, *ptx_desc_cmd_819x_usb;
+};
 
 typedef struct _tx_fwinfo_819x_usb {
        /* DOWRD 0 */
index a2a1075214505e88970c110bbe103aae9a7d6e4f..d7fa7ece62fb586c91cf8cc5a16227a8b69ee6e4 100644 (file)
@@ -1242,7 +1242,7 @@ short rtl819xU_tx_cmd(struct net_device *dev, struct sk_buff *skb)
        int                     status;
        struct urb              *tx_urb;
        unsigned int            idx_pipe;
-       tx_desc_cmd_819x_usb *pdesc = (tx_desc_cmd_819x_usb *)skb->data;
+       struct tx_desc_cmd_819x_usb *pdesc = (struct tx_desc_cmd_819x_usb *)skb->data;
        struct cb_desc *tcb_desc = (struct cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
        u8 queue_index = tcb_desc->queue_index;