Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -533,7 +533,8 @@ static void bgmac_dma_tx_ring_free(struct bgmac *bgmac,
	int 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];
		dev_kfree_skb(slot->skb);
+3 −3
Original line number Diff line number Diff line
@@ -479,9 +479,9 @@ struct bgmac_rx_header {
struct bgmac {
	union {
		struct {
			void *base;
			void *idm_base;
			void *nicpm_base;
			void __iomem *base;
			void __iomem *idm_base;
			void __iomem *nicpm_base;
		} plat;
		struct {
			struct bcma_device *core;