]> git.baikalelectronics.ru Git - kernel.git/commit
via-velocity: remove null pointer check on array tdinfo->skb_dma
authorColin Ian King <colin.king@canonical.com>
Thu, 8 Sep 2016 09:04:24 +0000 (10:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Sep 2016 01:17:33 +0000 (18:17 -0700)
commit26f48ba44587460e0a298e1c42c71089a31fa2a0
treecdf6137a4354b2ae7e3fa77f3f42411fee1d2b42
parent8997855c2723b46791ed89e2a0b21cc9ec1a24da
via-velocity: remove null pointer check on array tdinfo->skb_dma

tdinfo->skb_dma is a 7 element array of dma_addr_t hence cannot be
null, so the pull pointer check on tdinfo->skb_dma  is redundant.
Remove it.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/via/via-velocity.c