]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5e: en_tc: Fix incorrect type in initializer warnings
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 May 2020 06:41:03 +0000 (23:41 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 30 May 2020 04:20:22 +0000 (21:20 -0700)
Fix some trivial warnings of the type:
warning: incorrect type in initializer (different base types)

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

index ac19a61c5cbc2ce37a41c6bc777509dbb4e079d7..e866f209f252320a1d1fe858b47727c66a63cb3a 100644 (file)
@@ -1873,7 +1873,7 @@ enc_opts_is_dont_care_or_full_match(struct mlx5e_priv *priv,
                    memchr_inv(opt->opt_data, 0, opt->length * 4)) {
                        *dont_care = false;
 
-                       if (opt->opt_class != U16_MAX ||
+                       if (opt->opt_class != htons(U16_MAX) ||
                            opt->type != U8_MAX) {
                                NL_SET_ERR_MSG(extack,
                                               "Partial match of tunnel options in chain > 0 isn't supported");