diff mbox

net/mlx5e: fix semicolon.cocci warnings

Message ID 20151129163550.GA4225@lkp-ib03
State RFC, archived
Delegated to: David Miller
Headers show

Commit Message

kernel test robot Nov. 29, 2015, 4:35 p.m. UTC
drivers/net/ethernet/mellanox/mlx5/core/en_main.c:1970:2-3: Unneeded semicolon
drivers/net/ethernet/mellanox/mlx5/core/en_main.c:1959:2-3: Unneeded semicolon


 Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

CC: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 en_main.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
@@ -1956,7 +1956,7 @@  static int mlx5_vport_link2ifla(u8 esw_l
 		return IFLA_VF_LINK_STATE_DISABLE;
 	case MLX5_ESW_VPORT_ADMIN_STATE_UP:
 		return IFLA_VF_LINK_STATE_ENABLE;
-	};
+	}
 	return IFLA_VF_LINK_STATE_AUTO;
 }
 
@@ -1967,7 +1967,7 @@  static int mlx5_ifla_link2vport(u8 ifla_
 		return MLX5_ESW_VPORT_ADMIN_STATE_DOWN;
 	case IFLA_VF_LINK_STATE_ENABLE:
 		return MLX5_ESW_VPORT_ADMIN_STATE_UP;
-	};
+	}
 	return MLX5_ESW_VPORT_ADMIN_STATE_AUTO;
 }