diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-09-22 16:43:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-23 17:33:39 -0400 |
commit | a02cec2155fbea457eca8881870fd2de1a4c4c76 (patch) | |
tree | cfbfc4b32bfe10f9cd803d46c31607d13f1858f5 /net/802 | |
parent | 6a08d194ee40806e0ccd5f36ed768e64cbfc979f (diff) |
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 'net/802')
-rw-r--r-- | net/802/fc.c | 2 | ||||
-rw-r--r-- | net/802/fddi.c | 12 | ||||
-rw-r--r-- | net/802/hippi.c | 2 | ||||
-rw-r--r-- | net/802/tr.c | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/net/802/fc.c b/net/802/fc.c index 34cf1ee014b8..1e49f2d4ea96 100644 --- a/net/802/fc.c +++ b/net/802/fc.c | |||
@@ -70,7 +70,7 @@ static int fc_header(struct sk_buff *skb, struct net_device *dev, | |||
70 | if(daddr) | 70 | if(daddr) |
71 | { | 71 | { |
72 | memcpy(fch->daddr,daddr,dev->addr_len); | 72 | memcpy(fch->daddr,daddr,dev->addr_len); |
73 | return(hdr_len); | 73 | return hdr_len; |
74 | } | 74 | } |
75 | return -hdr_len; | 75 | return -hdr_len; |
76 | } | 76 | } |
diff --git a/net/802/fddi.c b/net/802/fddi.c index 3ef0ab0a543a..94b3ad08f39a 100644 --- a/net/802/fddi.c +++ b/net/802/fddi.c | |||
@@ -82,10 +82,10 @@ static int fddi_header(struct sk_buff *skb, struct net_device *dev, | |||
82 | if (daddr != NULL) | 82 | if (daddr != NULL) |
83 | { | 83 | { |
84 | memcpy(fddi->daddr, daddr, dev->addr_len); | 84 | memcpy(fddi->daddr, daddr, dev->addr_len); |
85 | return(hl); | 85 | return hl; |
86 | } | 86 | } |
87 | 87 | ||
88 | return(-hl); | 88 | return -hl; |
89 | } | 89 | } |
90 | 90 | ||
91 | 91 | ||
@@ -108,7 +108,7 @@ static int fddi_rebuild_header(struct sk_buff *skb) | |||
108 | { | 108 | { |
109 | printk("%s: Don't know how to resolve type %04X addresses.\n", | 109 | printk("%s: Don't know how to resolve type %04X addresses.\n", |
110 | skb->dev->name, ntohs(fddi->hdr.llc_snap.ethertype)); | 110 | skb->dev->name, ntohs(fddi->hdr.llc_snap.ethertype)); |
111 | return(0); | 111 | return 0; |
112 | } | 112 | } |
113 | } | 113 | } |
114 | 114 | ||
@@ -162,7 +162,7 @@ __be16 fddi_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
162 | 162 | ||
163 | /* Assume 802.2 SNAP frames, for now */ | 163 | /* Assume 802.2 SNAP frames, for now */ |
164 | 164 | ||
165 | return(type); | 165 | return type; |
166 | } | 166 | } |
167 | 167 | ||
168 | EXPORT_SYMBOL(fddi_type_trans); | 168 | EXPORT_SYMBOL(fddi_type_trans); |
@@ -170,9 +170,9 @@ EXPORT_SYMBOL(fddi_type_trans); | |||
170 | int fddi_change_mtu(struct net_device *dev, int new_mtu) | 170 | int fddi_change_mtu(struct net_device *dev, int new_mtu) |
171 | { | 171 | { |
172 | if ((new_mtu < FDDI_K_SNAP_HLEN) || (new_mtu > FDDI_K_SNAP_DLEN)) | 172 | if ((new_mtu < FDDI_K_SNAP_HLEN) || (new_mtu > FDDI_K_SNAP_DLEN)) |
173 | return(-EINVAL); | 173 | return -EINVAL; |
174 | dev->mtu = new_mtu; | 174 | dev->mtu = new_mtu; |
175 | return(0); | 175 | return 0; |
176 | } | 176 | } |
177 | EXPORT_SYMBOL(fddi_change_mtu); | 177 | EXPORT_SYMBOL(fddi_change_mtu); |
178 | 178 | ||
diff --git a/net/802/hippi.c b/net/802/hippi.c index cd3e8e929529..91aca8780fd0 100644 --- a/net/802/hippi.c +++ b/net/802/hippi.c | |||
@@ -152,7 +152,7 @@ int hippi_change_mtu(struct net_device *dev, int new_mtu) | |||
152 | if ((new_mtu < 68) || (new_mtu > 65280)) | 152 | if ((new_mtu < 68) || (new_mtu > 65280)) |
153 | return -EINVAL; | 153 | return -EINVAL; |
154 | dev->mtu = new_mtu; | 154 | dev->mtu = new_mtu; |
155 | return(0); | 155 | return 0; |
156 | } | 156 | } |
157 | EXPORT_SYMBOL(hippi_change_mtu); | 157 | EXPORT_SYMBOL(hippi_change_mtu); |
158 | 158 | ||
diff --git a/net/802/tr.c b/net/802/tr.c index 1c6e596074df..5e20cf8a074b 100644 --- a/net/802/tr.c +++ b/net/802/tr.c | |||
@@ -145,7 +145,7 @@ static int tr_header(struct sk_buff *skb, struct net_device *dev, | |||
145 | { | 145 | { |
146 | memcpy(trh->daddr,daddr,dev->addr_len); | 146 | memcpy(trh->daddr,daddr,dev->addr_len); |
147 | tr_source_route(skb, trh, dev); | 147 | tr_source_route(skb, trh, dev); |
148 | return(hdr_len); | 148 | return hdr_len; |
149 | } | 149 | } |
150 | 150 | ||
151 | return -hdr_len; | 151 | return -hdr_len; |