diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2010-12-31 13:59:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-01 16:57:56 -0500 |
commit | 0e65967e33be61e5f67727edd4ea829b47676fc0 (patch) | |
tree | 1135d631e0cb88af3f8b060b8c32a130315542d8 /net/tipc/eth_media.c | |
parent | 25860c3bd5bd1db236d4fd5826d76127d677dc28 (diff) |
tipc: cleanup various cosmetic whitespace issues
Cleans up TIPC's source code to eliminate deviations from generally
accepted coding conventions relating to leading/trailing white space
and white space around commas, braces, cases, and sizeof.
These changes are purely cosmetic and do not alter the operation of TIPC
in any way.
Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/eth_media.c')
-rw-r--r-- | net/tipc/eth_media.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c index 101d9cb6a559..5dfe66357794 100644 --- a/net/tipc/eth_media.c +++ b/net/tipc/eth_media.c | |||
@@ -144,7 +144,7 @@ static int enable_bearer(struct tipc_bearer *tb_ptr) | |||
144 | 144 | ||
145 | /* Find device with specified name */ | 145 | /* Find device with specified name */ |
146 | 146 | ||
147 | for_each_netdev(&init_net, pdev){ | 147 | for_each_netdev(&init_net, pdev) { |
148 | if (!strncmp(pdev->name, driver_name, IFNAMSIZ)) { | 148 | if (!strncmp(pdev->name, driver_name, IFNAMSIZ)) { |
149 | dev = pdev; | 149 | dev = pdev; |
150 | break; | 150 | break; |
@@ -155,7 +155,8 @@ static int enable_bearer(struct tipc_bearer *tb_ptr) | |||
155 | 155 | ||
156 | /* Find Ethernet bearer for device (or create one) */ | 156 | /* Find Ethernet bearer for device (or create one) */ |
157 | 157 | ||
158 | for (;(eb_ptr != stop) && eb_ptr->dev && (eb_ptr->dev != dev); eb_ptr++); | 158 | while ((eb_ptr != stop) && eb_ptr->dev && (eb_ptr->dev != dev)) |
159 | eb_ptr++; | ||
159 | if (eb_ptr == stop) | 160 | if (eb_ptr == stop) |
160 | return -EDQUOT; | 161 | return -EDQUOT; |
161 | if (!eb_ptr->dev) { | 162 | if (!eb_ptr->dev) { |