diff options
author | Rudy Matela <rudy.matela@gmail.com> | 2009-11-30 02:42:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-30 02:42:14 -0500 |
commit | 48b3d3efbd200ede1a4170bbcd81c062306a1907 (patch) | |
tree | e25764f083f75b9caf89c7440519f8d15f3c4cb4 /drivers/net/wan | |
parent | e7473f12be7712aafe6df163222f26caadee1175 (diff) |
wan: Frame Relay/DLCI coding style corrections.
Added a space separating some keywords (if/while) 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>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/dlci.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wan/dlci.c b/drivers/net/wan/dlci.c index 15d353f268b5..421d0715310e 100644 --- a/drivers/net/wan/dlci.c +++ b/drivers/net/wan/dlci.c | |||
@@ -77,7 +77,7 @@ static int dlci_header(struct sk_buff *skb, struct net_device *dev, | |||
77 | dlp = netdev_priv(dev); | 77 | dlp = netdev_priv(dev); |
78 | 78 | ||
79 | hdr.control = FRAD_I_UI; | 79 | hdr.control = FRAD_I_UI; |
80 | switch(type) | 80 | switch (type) |
81 | { | 81 | { |
82 | case ETH_P_IP: | 82 | case ETH_P_IP: |
83 | hdr.IP_NLPID = FRAD_P_IP; | 83 | hdr.IP_NLPID = FRAD_P_IP; |
@@ -130,7 +130,7 @@ static void dlci_receive(struct sk_buff *skb, struct net_device *dev) | |||
130 | dev->stats.rx_errors++; | 130 | dev->stats.rx_errors++; |
131 | } | 131 | } |
132 | else | 132 | else |
133 | switch(hdr->IP_NLPID) | 133 | switch (hdr->IP_NLPID) |
134 | { | 134 | { |
135 | case FRAD_P_PADDING: | 135 | case FRAD_P_PADDING: |
136 | if (hdr->NLPID != FRAD_P_SNAP) | 136 | if (hdr->NLPID != FRAD_P_SNAP) |
@@ -208,7 +208,7 @@ static int dlci_config(struct net_device *dev, struct dlci_conf __user *conf, in | |||
208 | 208 | ||
209 | if (!get) | 209 | if (!get) |
210 | { | 210 | { |
211 | if(copy_from_user(&config, conf, sizeof(struct dlci_conf))) | 211 | if (copy_from_user(&config, conf, sizeof(struct dlci_conf))) |
212 | return -EFAULT; | 212 | return -EFAULT; |
213 | if (config.flags & ~DLCI_VALID_FLAGS) | 213 | if (config.flags & ~DLCI_VALID_FLAGS) |
214 | return(-EINVAL); | 214 | return(-EINVAL); |
@@ -222,7 +222,7 @@ static int dlci_config(struct net_device *dev, struct dlci_conf __user *conf, in | |||
222 | 222 | ||
223 | if (get) | 223 | if (get) |
224 | { | 224 | { |
225 | if(copy_to_user(conf, &dlp->config, sizeof(struct dlci_conf))) | 225 | if (copy_to_user(conf, &dlp->config, sizeof(struct dlci_conf))) |
226 | return -EFAULT; | 226 | return -EFAULT; |
227 | } | 227 | } |
228 | 228 | ||
@@ -238,7 +238,7 @@ static int dlci_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
238 | 238 | ||
239 | dlp = netdev_priv(dev); | 239 | dlp = netdev_priv(dev); |
240 | 240 | ||
241 | switch(cmd) | 241 | switch (cmd) |
242 | { | 242 | { |
243 | case DLCI_GET_SLAVE: | 243 | case DLCI_GET_SLAVE: |
244 | if (!*(short *)(dev->dev_addr)) | 244 | if (!*(short *)(dev->dev_addr)) |
@@ -417,7 +417,7 @@ static int dlci_ioctl(unsigned int cmd, void __user *arg) | |||
417 | if (!capable(CAP_NET_ADMIN)) | 417 | if (!capable(CAP_NET_ADMIN)) |
418 | return(-EPERM); | 418 | return(-EPERM); |
419 | 419 | ||
420 | if(copy_from_user(&add, arg, sizeof(struct dlci_add))) | 420 | if (copy_from_user(&add, arg, sizeof(struct dlci_add))) |
421 | return -EFAULT; | 421 | return -EFAULT; |
422 | 422 | ||
423 | switch (cmd) | 423 | switch (cmd) |
@@ -426,7 +426,7 @@ static int dlci_ioctl(unsigned int cmd, void __user *arg) | |||
426 | err = dlci_add(&add); | 426 | err = dlci_add(&add); |
427 | 427 | ||
428 | if (!err) | 428 | if (!err) |
429 | if(copy_to_user(arg, &add, sizeof(struct dlci_add))) | 429 | if (copy_to_user(arg, &add, sizeof(struct dlci_add))) |
430 | return -EFAULT; | 430 | return -EFAULT; |
431 | break; | 431 | break; |
432 | 432 | ||