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

Commit 335ab8ba authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

net: bcmgenet: return NULL instead of plain integer



Fixes the following sparse warning:

drivers/net/ethernet/broadcom/genet/bcmgenet.c:1351:16: warning:
 Using plain integer as NULL pointer

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 99fe29d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1348,7 +1348,7 @@ static struct sk_buff *bcmgenet_free_tx_cb(struct device *dev,
		dma_unmap_addr_set(cb, dma_addr, 0);
	}

	return 0;
	return NULL;
}

/* Simple helper to free a receive control block's resources */