diff options
author | Daniele Di Proietto <daniele.di.proietto@gmail.com> | 2014-01-23 19:56:49 +0100 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-05-16 22:40:28 +0200 |
commit | 7085130bab2f9c5b8d61bff73b01dc8195d0f974 (patch) | |
tree | 47fbd0a48f316d8ad632bf7a69ed8b9a43bfbcf1 /net/openvswitch/flow_netlink.c | |
parent | macvlan: simplify the structure port (diff) | |
download | linux-7085130bab2f9c5b8d61bff73b01dc8195d0f974.tar.xz 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; } } |