Staging: rtl8192e: Fix incorrect type in assignment in r8192E_dev.c

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>
This commit is contained in:
Rashika Kheria 2013-11-07 19:13:49 +05:30 committed by Greg Kroah-Hartman
parent d95cb1c774
commit 285cce0560
1 changed files with 2 additions and 2 deletions

View File

@ -1272,7 +1272,7 @@ void rtl8192_tx_fill_desc(struct net_device *dev, struct tx_desc *pdesc,
pdesc->LastSeg = 1; pdesc->LastSeg = 1;
pdesc->TxBufferSize = skb->len; pdesc->TxBufferSize = skb->len;
pdesc->TxBuffAddr = cpu_to_le32(mapping); pdesc->TxBuffAddr = mapping;
} }
void rtl8192_tx_fill_cmd_desc(struct net_device *dev, 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_tmp->RATid = (u8)DESC_PACKET_TYPE_INIT;
} }
entry->TxBufferSize = skb->len; entry->TxBufferSize = skb->len;
entry->TxBuffAddr = cpu_to_le32(mapping); entry->TxBuffAddr = mapping;
entry->OWN = 1; entry->OWN = 1;
} }