Staging: rtl8192e: Fix incorrect type in assignment in r8192E_dev.c
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 7 Nov 2013 13:43:49 +0000 (19:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 20:02:22 +0000 (12:02 -0800)
This patch fixes the following sparse warning in rtl8192e/r8192E_dev.c-

drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:1275:27: warning: incorrect type in assignment (different base types)
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:1275:27:    expected unsigned int [unsigned] [usertype] TxBuffAddr
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:1275:27:    got restricted __le32 [usertype] <noident>

drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:1305:27: warning:  incorrect type in assignment (different base types)
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:1305:27:    expected  unsigned int [unsigned] [usertype] TxBuffAddr
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:1305:27:    got  restricted __le32 [usertype] <noident>

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c

index dc9d7d616a4969aea18b80df30f3ff9ef115b90c..175c7a16695bf9ad74ed09674b6856528d859226 100644 (file)
@@ -1272,7 +1272,7 @@ void  rtl8192_tx_fill_desc(struct net_device *dev, struct tx_desc *pdesc,
        pdesc->LastSeg = 1;
        pdesc->TxBufferSize = skb->len;
 
-       pdesc->TxBuffAddr = cpu_to_le32(mapping);
+       pdesc->TxBuffAddr = mapping;
 }
 
 void  rtl8192_tx_fill_cmd_desc(struct net_device *dev,
@@ -1302,7 +1302,7 @@ void  rtl8192_tx_fill_cmd_desc(struct net_device *dev,
                entry_tmp->RATid = (u8)DESC_PACKET_TYPE_INIT;
        }
        entry->TxBufferSize = skb->len;
-       entry->TxBuffAddr = cpu_to_le32(mapping);
+       entry->TxBuffAddr = mapping;
        entry->OWN = 1;
 }