Commit 28e9c1d5 authored by David S. Miller's avatar David S. Miller

Merge branch 'net-bgmac-Couple-of-sparse-warnings'

Florian Fainelli says:

====================
net: bgmac: Couple of sparse warnings

This patch series fixes a couple of warnings reported by sparse, should not
cause any functional problems since bgmac is typically used on LE platforms
anyway.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 6174a30d 60d6e6f0
...@@ -533,7 +533,8 @@ static void bgmac_dma_tx_ring_free(struct bgmac *bgmac, ...@@ -533,7 +533,8 @@ static void bgmac_dma_tx_ring_free(struct bgmac *bgmac,
int i; int i;
for (i = 0; i < BGMAC_TX_RING_SLOTS; i++) { for (i = 0; i < BGMAC_TX_RING_SLOTS; i++) {
int len = dma_desc[i].ctl1 & BGMAC_DESC_CTL1_LEN; u32 ctl1 = le32_to_cpu(dma_desc[i].ctl1);
unsigned int len = ctl1 & BGMAC_DESC_CTL1_LEN;
slot = &ring->slots[i]; slot = &ring->slots[i];
dev_kfree_skb(slot->skb); dev_kfree_skb(slot->skb);
......
...@@ -479,9 +479,9 @@ struct bgmac_rx_header { ...@@ -479,9 +479,9 @@ struct bgmac_rx_header {
struct bgmac { struct bgmac {
union { union {
struct { struct {
void *base; void __iomem *base;
void *idm_base; void __iomem *idm_base;
void *nicpm_base; void __iomem *nicpm_base;
} plat; } plat;
struct { struct {
struct bcma_device *core; struct bcma_device *core;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment