diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-09-23 01:40:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-26 21:34:29 -0400 |
commit | 807540baae406c84dcb9c1c8ef07a56d2d2ae84a (patch) | |
tree | ccd5c2cb57710dd6b73cf8df11eedf67abc14ae4 /drivers/net/appletalk/ipddp.c | |
parent | cb4dfe562cac6fcb544df752e40c1d78000d0712 (diff) |
drivers/net: return operator cleanup
Change "return (EXPR);" to "return EXPR;"
return is not a function, parentheses are not required.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/appletalk/ipddp.c')
-rw-r--r-- | drivers/net/appletalk/ipddp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/appletalk/ipddp.c b/drivers/net/appletalk/ipddp.c index 0362c8d31a08..10d0dba572c2 100644 --- a/drivers/net/appletalk/ipddp.c +++ b/drivers/net/appletalk/ipddp.c | |||
@@ -244,7 +244,7 @@ static int ipddp_delete(struct ipddp_route *rt) | |||
244 | } | 244 | } |
245 | 245 | ||
246 | spin_unlock_bh(&ipddp_route_lock); | 246 | spin_unlock_bh(&ipddp_route_lock); |
247 | return (-ENOENT); | 247 | return -ENOENT; |
248 | } | 248 | } |
249 | 249 | ||
250 | /* | 250 | /* |
@@ -259,10 +259,10 @@ static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt) | |||
259 | if(f->ip == rt->ip && | 259 | if(f->ip == rt->ip && |
260 | f->at.s_net == rt->at.s_net && | 260 | f->at.s_net == rt->at.s_net && |
261 | f->at.s_node == rt->at.s_node) | 261 | f->at.s_node == rt->at.s_node) |
262 | return (f); | 262 | return f; |
263 | } | 263 | } |
264 | 264 | ||
265 | return (NULL); | 265 | return NULL; |
266 | } | 266 | } |
267 | 267 | ||
268 | static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | 268 | static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) |
@@ -279,7 +279,7 @@ static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
279 | switch(cmd) | 279 | switch(cmd) |
280 | { | 280 | { |
281 | case SIOCADDIPDDPRT: | 281 | case SIOCADDIPDDPRT: |
282 | return (ipddp_create(&rcp)); | 282 | return ipddp_create(&rcp); |
283 | 283 | ||
284 | case SIOCFINDIPDDPRT: | 284 | case SIOCFINDIPDDPRT: |
285 | spin_lock_bh(&ipddp_route_lock); | 285 | spin_lock_bh(&ipddp_route_lock); |
@@ -297,7 +297,7 @@ static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
297 | return -ENOENT; | 297 | return -ENOENT; |
298 | 298 | ||
299 | case SIOCDELIPDDPRT: | 299 | case SIOCDELIPDDPRT: |
300 | return (ipddp_delete(&rcp)); | 300 | return ipddp_delete(&rcp); |
301 | 301 | ||
302 | default: | 302 | default: |
303 | return -EINVAL; | 303 | return -EINVAL; |