diff options
author | Daniele Di Proietto <daniele.di.proietto@gmail.com> | 2014-01-23 10:56:49 -0800 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-05-16 13:40:28 -0700 |
commit | 7085130bab2f9c5b8d61bff73b01dc8195d0f974 (patch) | |
tree | 47fbd0a48f316d8ad632bf7a69ed8b9a43bfbcf1 /net/openvswitch/flow_netlink.c | |
parent | a188a54d11629bef2169052297e61f3767ca8ce5 (diff) | |
download | blackbird-op-linux-7085130bab2f9c5b8d61bff73b01dc8195d0f974.tar.gz blackbird-op-linux-7085130bab2f9c5b8d61bff73b01dc8195d0f974.zip |
openvswitch: use const in some local vars and casts
In few functions, const formal parameters are assigned or cast to
non-const.
These changes suppress warnings if compiled with -Wcast-qual.
Signed-off-by: Daniele Di Proietto <daniele.di.proietto@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/flow_netlink.c')
-rw-r--r-- | net/openvswitch/flow_netlink.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c index 4d000acaed0d..5517bd62e39b 100644 --- a/net/openvswitch/flow_netlink.c +++ b/net/openvswitch/flow_netlink.c @@ -628,8 +628,10 @@ static int ovs_key_from_nlattrs(struct sw_flow_match *match, bool *exact_5tuple if (is_mask && exact_5tuple && *exact_5tuple) { if (ipv6_key->ipv6_proto != 0xff || - !is_all_set((u8 *)ipv6_key->ipv6_src, sizeof(match->key->ipv6.addr.src)) || - !is_all_set((u8 *)ipv6_key->ipv6_dst, sizeof(match->key->ipv6.addr.dst))) + !is_all_set((const u8 *)ipv6_key->ipv6_src, + sizeof(match->key->ipv6.addr.src)) || + !is_all_set((const u8 *)ipv6_key->ipv6_dst, + sizeof(match->key->ipv6.addr.dst))) *exact_5tuple = false; } } |