From: Eric Dumazet Date: Sun, 28 Oct 2012 22:33:23 +0000 (+0000) Subject: ipv4: avoid a test in ip_rt_put() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~461 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6da025fa23bb10c82f80de319c837ed2b02306e4;p=pandora-kernel.git 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 Cc: Cong Wang Acked-by: Cong Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed