wan: Coding style correction in HDLC/Frame Relay support routines
Added a space separating some if keywords from the following parenthesis to conform to the CodingStyle. Signed-off-by: Rudy Matela <rudy.matela@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
48b3d3efbd
commit
6f7ad1e3a2
@@ -1214,10 +1214,10 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case IF_PROTO_FR:
|
case IF_PROTO_FR:
|
||||||
if(!capable(CAP_NET_ADMIN))
|
if (!capable(CAP_NET_ADMIN))
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
||||||
if(dev->flags & IFF_UP)
|
if (dev->flags & IFF_UP)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
if (copy_from_user(&new_settings, fr_s, size))
|
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 */
|
if (dev_to_hdlc(dev)->proto != &proto) /* Different proto */
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if(!capable(CAP_NET_ADMIN))
|
if (!capable(CAP_NET_ADMIN))
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
||||||
if (copy_from_user(&pvc, ifr->ifr_settings.ifs_ifsu.fr_pvc,
|
if (copy_from_user(&pvc, ifr->ifr_settings.ifs_ifsu.fr_pvc,
|
||||||
|
Reference in New Issue
Block a user