Skip to contentSkip to conversation

net: core: remove unneeded semicolon

PATCH Applied [email protected] 3 participants 3 messages Nov 1, 2020 – Nov 3, 2020

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

PATCH 1/1 net: core: remove unneeded semicolon

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
index 751e5264fd49..10f5d0c3d0d7 100644
@@ -8898,7 +8898,7 @@ static bpf_op_t dev_xdp_bpf_op(struct net_device *dev, enum bpf_xdp_mode mode)
 		return dev->netdev_ops->ndo_bpf;
 	default:
 		return NULL;
-	};
+	}
 }
 
 static struct bpf_xdp_link *dev_xdp_link(struct net_device *dev,
Signature · 1 line
2.18.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Sun, Nov 1, 2020 at 7:38 AM <[email protected]> wrote:

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

---

Yep.

Quoted 19 lines
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -2
index 751e5264fd49..10f5d0c3d0d7 100644
@@ -8898,7 +8898,7 @@ static bpf_op_t dev_xdp_bpf_op(struct net_device *dev, enum bpf_xdp_mode mode)
                return dev->netdev_ops->ndo_bpf;
        default:
                return NULL;
-       };
+       }
 }
 
 static struct bpf_xdp_link *dev_xdp_link(struct net_device *dev,
--

2.18.1