]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Remove unnecessary check for opt->is_data in ip_options_compile.
authorDenis V. Lunev <den@openvz.org>
Sat, 22 Mar 2008 23:35:00 +0000 (16:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Mar 2008 23:35:00 +0000 (16:35 -0700)
commitd9cee29732966e325a004b5a50fd09dada58000e
tree7698a8024571f2dd61559bad298ac397445ea693
parent2209240bb94ab377cd508df38e13e2ddc2dc8585
[IPV4]: Remove unnecessary check for opt->is_data in ip_options_compile.

There is the only way to reach ip_options compile with opt != NULL:

ip_options_get_finish
    opt->is_data = 1;
    ip_options_compile(opt, NULL)

So, checking for is_data inside opt != NULL branch is not needed.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_options.c