diff mbox series

net/mlx4_core : remove unneeded semicolon

Message ID 20201101140528.2279424-1-trix@redhat.com (mailing list archive)
State Not Applicable
Headers show
Series net/mlx4_core : remove unneeded semicolon | expand

Commit Message

Tom Rix Nov. 1, 2020, 2:05 p.m. UTC
From: Tom Rix <trix@redhat.com>

A semicolon is not needed after a switch statement.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tariq Toukan Nov. 2, 2020, 9:31 a.m. UTC | #1
On 11/1/2020 4:05 PM, trix@redhat.com wrote:
> From: Tom Rix <trix@redhat.com>
> 
> A semicolon is not needed after a switch statement.
> 
> Signed-off-by: Tom Rix <trix@redhat.com>
> ---
>   drivers/net/ethernet/mellanox/mlx4/resource_tracker.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
> index 1187ef1375e2..394f43add85c 100644
> --- a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
> +++ b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
> @@ -300,7 +300,7 @@ static const char *resource_str(enum mlx4_resource rt)
>   	case RES_FS_RULE: return "RES_FS_RULE";
>   	case RES_XRCD: return "RES_XRCD";
>   	default: return "Unknown resource type !!!";
> -	};
> +	}
>   }
>   
>   static void rem_slave_vlans(struct mlx4_dev *dev, int slave);
> 

Reviewed-by: Tariq Toukan <tariqt@nvidia.com>

Thanks,
Tariq
Jakub Kicinski Nov. 3, 2020, 1:53 a.m. UTC | #2
On Mon, 2 Nov 2020 11:31:57 +0200 Tariq Toukan wrote:
> On 11/1/2020 4:05 PM, trix@redhat.com wrote:
> > From: Tom Rix <trix@redhat.com>
> > 
> > A semicolon is not needed after a switch statement.
> > 
> > Signed-off-by: Tom Rix <trix@redhat.com>
> 
> Reviewed-by: Tariq Toukan <tariqt@nvidia.com>

Applied.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
index 1187ef1375e2..394f43add85c 100644
--- a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
+++ b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
@@ -300,7 +300,7 @@  static const char *resource_str(enum mlx4_resource rt)
 	case RES_FS_RULE: return "RES_FS_RULE";
 	case RES_XRCD: return "RES_XRCD";
 	default: return "Unknown resource type !!!";
-	};
+	}
 }
 
 static void rem_slave_vlans(struct mlx4_dev *dev, int slave);