Skip to contentSkip to conversation

vxlan: Fix trailing semicolon

PATCH Applied Luis de Bethencourt 3 participants 3 messages Jan 16, 2018 – Jan 17, 2018

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

PATCH 1/1 vxlan: Fix trailing semicolon

The trailing semicolon is an empty statement that does no operation. It is completely stripped out by the compiler. Removing it since it doesn't do anything.

---

Hi,

An other trailing semicolon to remove.

Best regards
Luis

[0] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115410.html
[1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115390.html

 include/net/vxlan.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/vxlan.h +1 -1
index f96391e84a8a..ad73d8b3fcc2 100644
@@ -301,7 +301,7 @@ static inline netdev_features_t vxlan_features_check(struct sk_buff *skb,
 		l4_hdr = ipv6_hdr(skb)->nexthdr;
 		break;
 	default:
-		return features;;
+		return features;
 	}
 
 	if ((l4_hdr == IPPROTO_UDP) &&
Signature · 1 line
2.15.1
Acked-by on v1 1/1
#1 lore raw
Quoted 26 lines · On Tue, 16 Jan 2018 15:03:32 +0000 Luis de Bethencourt <[email protected]>…

The trailing semicolon is an empty statement that does no operation. It is completely stripped out by the compiler. Removing it since it doesn't do anything.

---

Hi,

An other trailing semicolon to remove.

Best regards
Luis

[0] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115410.html
[1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115390.html

 include/net/vxlan.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/vxlan.h +0 -0
index f96391e84a8a..ad73d8b3fcc2 100644

include/net/vxlan.h static inline netdev_features_t vxlan_features_check(struct sk_buff *skb, · line 307

Quoted 8 lines
include/net/vxlan.h +1 -1
@@ -301,7 +301,7 @@ static inline netdev_features_t vxlan_features_check(struct sk_buff *skb,
 		l4_hdr = ipv6_hdr(skb)->nexthdr;
 		break;
 	default:
-		return features;;
+		return features;
 	}
 
 	if ((l4_hdr == IPPROTO_UDP) &&
Fixes 5f35227ea34b ("net: Generalize ndo_gso_check to ndo_features_check")