Skip to contentSkip to conversation

net/mlx5: remove unneeded semicolon

PATCH Applied Jiapeng Chong 3 participants 4 messages Feb 22, 2021 – Mar 11, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: remove unneeded semicolon

Fix the following coccicheck warnings:

./drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c:495:2-3: Unneeded semicolon.

---
 drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c +1 -1
index c2ba41b..60a6328 100644
@@ -492,7 +492,7 @@ static int mlx5_sf_esw_event(struct notifier_block *nb, unsigned long event, voi
 		break;
 	default:
 		break;
-	};
+	}
 
 	return 0;
 }
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 30 lines

From: Jiapeng Chong <[email protected]>
Sent: Monday, February 22, 2021 3:27 PM

Fix the following coccicheck warnings:

./drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c:495:2-3: Unneeded semicolon.

---
 drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c +1 -1
index c2ba41b..60a6328 100644
@@ -492,7 +492,7 @@ static int mlx5_sf_esw_event(struct notifier_block
 *nb, unsigned long event, voi
 		break;
 	default:
 		break;
-	};
+	}
 
 	return 0;
Quoted 3 lines

}
--
1.8.3.1

#2 lore raw

Hi Saeed,

Quoted 31 lines

From: Parav Pandit <[email protected]>
Sent: Monday, February 22, 2021 3:32 PM

Quoted 27 lines

From: Jiapeng Chong <[email protected]>
Sent: Monday, February 22, 2021 3:27 PM

Fix the following coccicheck warnings:

./drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c:495:2-3:
Unneeded semicolon.

---
 drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c +1 -1
index c2ba41b..60a6328 100644
@@ -492,7 +492,7 @@ static int mlx5_sf_esw_event(struct notifier_block
 *nb, unsigned long event, voi
 		break;
 	default:
 		break;
-	};
+	}
 
Quoted 6 lines
Quoted 4 lines
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c +0 -0
 	return 0;

}
--
1.8.3.1

Will you take this patch [1] to your queue?

[1] https://lore.kernel.org/linux-rdma/1613987819-43161-1-git-send-email-jiapeng.chong@linux.alibaba.com/

#3 lore raw
Quoted 41 lines · Parav Pandit

Hi Saeed,

Quoted 32 lines

From: Parav Pandit <[email protected]>
Sent: Monday, February 22, 2021 3:32 PM

Quoted 28 lines

From: Jiapeng Chong <[email protected]>
Sent: Monday, February 22, 2021 3:27 PM

Fix the following coccicheck warnings:

./drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c:495:2-3:
Unneeded semicolon.

---
 drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c +0 -0
index c2ba41b..60a6328 100644
@@ -492,7 +492,7 @@ static int mlx5_sf_esw_event(struct

notifier_block
*nb, unsigned long event, voi
                break;
        default:
                break;
-       };
+       }

Quoted 6 lines
Quoted 4 lines

        return 0;
 }
--
1.8.3.1

Quoted 4 lines

Will you take this patch [1] to your queue?

[1]
https://lore.kernel.org/linux-rdma/1613987819-43161-1-git-send-email-jiapeng.chong@linux.alibaba.com/

Applied to net-next-mlx5.
Thanks,
Saeed.