diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2010-12-31 13:59:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-01 16:57:57 -0500 |
commit | a016892cd6eb8d3dd9769021b088917ac7371abd (patch) | |
tree | 7176a3754a1b26b9a4703984d7a0ccf4e320e4ee /net/tipc/port.c | |
parent | e3ec9c7d5eea9adf2c604c623c987360cc700b88 (diff) |
tipc: remove extraneous braces from single statements
Cleans up TIPC's source code to eliminate the presence of unnecessary
use of {} around single statements.
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/port.c')
-rw-r--r-- | net/tipc/port.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c index c23f3380d0a7..067bab2a0b98 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c | |||
@@ -131,9 +131,8 @@ int tipc_multicast(u32 ref, struct tipc_name_seq const *seq, | |||
131 | } | 131 | } |
132 | } | 132 | } |
133 | res = tipc_bclink_send_msg(buf); | 133 | res = tipc_bclink_send_msg(buf); |
134 | if ((res < 0) && (dports.count != 0)) { | 134 | if ((res < 0) && (dports.count != 0)) |
135 | buf_discard(ibuf); | 135 | buf_discard(ibuf); |
136 | } | ||
137 | } else { | 136 | } else { |
138 | ibuf = buf; | 137 | ibuf = buf; |
139 | } | 138 | } |
@@ -190,9 +189,8 @@ void tipc_port_recv_mcast(struct sk_buff *buf, struct port_list *dp) | |||
190 | warn("Unable to deliver multicast message(s)\n"); | 189 | warn("Unable to deliver multicast message(s)\n"); |
191 | goto exit; | 190 | goto exit; |
192 | } | 191 | } |
193 | if ((index == 0) && (cnt != 0)) { | 192 | if ((index == 0) && (cnt != 0)) |
194 | item = item->next; | 193 | item = item->next; |
195 | } | ||
196 | msg_set_destport(buf_msg(b), item->ports[index]); | 194 | msg_set_destport(buf_msg(b), item->ports[index]); |
197 | tipc_port_recv_msg(b); | 195 | tipc_port_recv_msg(b); |
198 | } | 196 | } |