]> git.baikalelectronics.ru Git - kernel.git/commit
driver: macvlan: Remove duplicated IFF_UP condition check in macvlan_forward_source
authorGao Feng <gfree.wind@gmail.com>
Mon, 21 Nov 2016 00:26:38 +0000 (08:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 16:58:49 +0000 (11:58 -0500)
commit75fca37f34e62b25c697266c815489c2fe335bd4
treee223ab19084a0a36e5bd2ab0e99d1840da1e6d57
parent9c02fe479684d37185b91628235ec9f7a28c0c08
driver: macvlan: Remove duplicated IFF_UP condition check in macvlan_forward_source

The function macvlan_forward_source_one has already checked the flag
IFF_UP, so needn't check it outside in macvlan_forward_source too.

Signed-off-by: Gao Feng <gfree.wind@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c