summaryrefslogtreecommitdiffstats
path: root/net/nonet.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-10-28 23:33:23 +0100
committerDavid S. Miller <davem@davemloft.net>2012-11-03 19:59:04 +0100
commit6da025fa23bb10c82f80de319c837ed2b02306e4 (patch)
tree64992521a7fa74c04eff45fffc88dd56dfb10ba7 /net/nonet.c
parentsctp: Clean up type-punning in sctp_cmd_t union (diff)
downloadlinux-6da025fa23bb10c82f80de319c837ed2b02306e4.tar.xz
linux-6da025fa23bb10c82f80de319c837ed2b02306e4.zip
ipv4: avoid a test in ip_rt_put()
We can save a test in ip_rt_put(), considering dst_release() accepts a NULL parameter, and dst is first element in rtable. Add a BUILD_BUG_ON() to catch any change that could break this assertion. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Cong Wang <amwang@redhat.com> Acked-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nonet.c')
0 files changed, 0 insertions, 0 deletions