Skip to contentSkip to conversation

Coding style correction in HDLC/Frame Relay support routines

PATCH Applied Rudy Matela 2 participants 2 messages Nov 26, 2009 – Nov 30, 2009

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

PATCH 1/1 Coding style correction in HDLC/Frame Relay support routines

Coding style corrections on Frame Relay/DLCI support routines.

Added a space separating some if keywords from the following parenthesis to conform to the CodingStyle.

---

drivers/net/wan/hdlc_fr.c +3 -3
index 840cff7..a7d4fc1 100644
@@ -1214,10 +1214,10 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr)
 		return 0;
 
 	case IF_PROTO_FR:
-		if(!capable(CAP_NET_ADMIN))
+		if (!capable(CAP_NET_ADMIN))
 			return -EPERM;
 
-		if(dev->flags & IFF_UP)
+		if (dev->flags & IFF_UP)
 			return -EBUSY;
 
 		if (copy_from_user(&new_settings, fr_s, size))
@@ -1263,7 +1263,7 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr)
 		if (dev_to_hdlc(dev)->proto != &proto) /* Different proto */
 			return -EINVAL;
 
-		if(!capable(CAP_NET_ADMIN))
+		if (!capable(CAP_NET_ADMIN))
 			return -EPERM;
 
 		if (copy_from_user(&pvc, ifr->ifr_settings.ifs_ifsu.fr_pvc,
maintainer Applied
#1 lore raw

From: Rudy Matela <[email protected]>
Date: Thu, 26 Nov 2009 20:13:42 -0300

Quoted 6 lines

Coding style corrections on Frame Relay/DLCI support routines.

Added a space separating some if keywords from the following parenthesis to conform to the CodingStyle.

Applied, thanks.