diff options
author | David S. Miller <davem@davemloft.net> | 2017-05-22 18:27:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-22 18:27:07 +0200 |
commit | e4eda884db7930cee434828759064b4711604078 (patch) | |
tree | b4a5875c74a19036e863ac1be67fab65fbd28c09 /net | |
parent | bonding: fix accounting of active ports in 3ad (diff) | |
download | linux-e4eda884db7930cee434828759064b4711604078.tar.xz linux-e4eda884db7930cee434828759064b4711604078.zip |
net: Make IP alignment calulations clearer.
The assignmnet:
ip_align = strict ? 2 : NET_IP_ALIGN;
in compare_pkt_ptr_alignment() trips up Coverity because we can only
get to this code when strict is true, therefore ip_align will always
be 2 regardless of NET_IP_ALIGN's value.
So just assign directly to '2' and explain the situation in the
comment above.
Reported-by: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions