Skip to contentSkip to conversation

ipmr: Replace comma with semicolon

PATCH Applied Himangi Saraogi 2 participants 2 messages May 30, 2014 – May 31, 2014

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

PATCH 1/1 ipmr: Replace comma with semicolon

This patch replaces a comma between expression statements by a semicolon.

A simplified version of the semantic patch that performs this transformation is as follows:

// <smpl>
@r@
expression e1,e2,e;
type T;
identifier i;
@@

e1
-,
+;
e2;
// </smpl>

---
 net/ipv4/ipmr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/ipmr.c +1 -1
index d84dc8d..2bc9cc4 100644
@@ -484,7 +484,7 @@ static void reg_vif_setup(struct net_device *dev)
 	dev->type		= ARPHRD_PIMREG;
 	dev->mtu		= ETH_DATA_LEN - sizeof(struct iphdr) - 8;
 	dev->flags		= IFF_NOARP;
-	dev->netdev_ops		= &reg_vif_netdev_ops,
+	dev->netdev_ops		= &reg_vif_netdev_ops;
 	dev->destructor		= free_netdev;
 	dev->features		|= NETIF_F_NETNS_LOCAL;
 }
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw

From: Himangi Saraogi <[email protected]>
Date: Fri, 30 May 2014 21:10:48 +0530

Quoted 4 lines

This patch replaces a comma between expression statements by a semicolon.

A simplified version of the semantic patch that performs this transformation is as follows:

...

Quoted 1 line

Applied.