]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Minor logic clean-up in ipv4_mtu
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 27 Aug 2012 06:30:01 +0000 (06:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Aug 2012 20:22:50 +0000 (16:22 -0400)
commit109f2dfdd8ed1f087685d30c9f9f880160051ae9
tree1d5d9697fb34a5d2968fee815cdcc0de6f029576
parent961ab977d48768ac5371d9ec6efa7a55f128f5d1
ipv4: Minor logic clean-up in ipv4_mtu

In ipv4_mtu there is some logic where we are testing for a non-zero value
and a timer expiration, then setting the value to zero, and then testing if
the value is zero we set it to a value based on the dst.  Instead of
bothering with the extra steps it is easier to just cleanup the logic so
that we set it to the dst based value if it is zero or if the timer has
expired.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
net/ipv4/route.c