summaryrefslogtreecommitdiffstats
path: root/drivers/net/loopback.c
diff options
context:
space:
mode:
authorEric W. Biederman2007-09-27 07:10:06 +0200
committerDavid S. Miller2007-10-11 01:52:48 +0200
commit0cc217e16cb8ca8ef2544363571fce94259900e0 (patch)
tree05d7ef10fd9971fffa3f3870a4c3e66077bb1dc2 /drivers/net/loopback.c
parent[IPV4]: Remove unnecessary test for the loopback device from inetdev_destroy (diff)
downloadkernel-qcow2-linux-0cc217e16cb8ca8ef2544363571fce94259900e0.tar.gz
kernel-qcow2-linux-0cc217e16cb8ca8ef2544363571fce94259900e0.tar.xz
kernel-qcow2-linux-0cc217e16cb8ca8ef2544363571fce94259900e0.zip
[IPV4]: When possible test for IFF_LOOPBACK and not dev == loopback_dev
Now that multiple loopback devices are becoming possible it makes the code a little cleaner and more maintainable to test if a deivice is th a loopback device by testing dev->flags & IFF_LOOPBACK instead of dev == loopback_dev. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/loopback.c')
0 files changed, 0 insertions, 0 deletions