net: rds: fix coding style issues
Fix coding style issues in the following files: ib_cm.c: add space loop.c: convert spaces to tabs sysctl.c: add space tcp.h: convert spaces to tabs tcp_connect.c:remove extra indentation in switch statement tcp_recv.c: convert spaces to tabs tcp_send.c: convert spaces to tabs transport.c: move brace up one line on for statement Signed-off-by: Joshua Houghton <josh@awful.name> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4a7d99ea1b
commit
5c3da57d70
|
@ -111,7 +111,7 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even
|
|||
}
|
||||
}
|
||||
|
||||
if (conn->c_version < RDS_PROTOCOL(3,1)) {
|
||||
if (conn->c_version < RDS_PROTOCOL(3, 1)) {
|
||||
printk(KERN_NOTICE "RDS/IB: Connection to %pI4 version %u.%u failed,"
|
||||
" no longer supported\n",
|
||||
&conn->c_faddr,
|
||||
|
|
|
@ -96,6 +96,7 @@ out:
|
|||
static void rds_loop_inc_free(struct rds_incoming *inc)
|
||||
{
|
||||
struct rds_message *rm = container_of(inc, struct rds_message, m_inc);
|
||||
|
||||
rds_message_put(rm);
|
||||
}
|
||||
|
||||
|
|
|
@ -102,7 +102,8 @@ int rds_sysctl_init(void)
|
|||
rds_sysctl_reconnect_min = msecs_to_jiffies(1);
|
||||
rds_sysctl_reconnect_min_jiffies = rds_sysctl_reconnect_min;
|
||||
|
||||
rds_sysctl_reg_table = register_net_sysctl(&init_net,"net/rds", rds_sysctl_rds_table);
|
||||
rds_sysctl_reg_table =
|
||||
register_net_sysctl(&init_net, "net/rds", rds_sysctl_rds_table);
|
||||
if (!rds_sysctl_reg_table)
|
||||
return -ENOMEM;
|
||||
return 0;
|
||||
|
|
|
@ -54,7 +54,7 @@ void rds_tcp_state_change(struct sock *sk)
|
|||
|
||||
rdsdebug("sock %p state_change to %d\n", tc->t_sock, sk->sk_state);
|
||||
|
||||
switch(sk->sk_state) {
|
||||
switch (sk->sk_state) {
|
||||
/* ignore connecting sockets as they make progress */
|
||||
case TCP_SYN_SENT:
|
||||
case TCP_SYN_RECV:
|
||||
|
|
|
@ -140,8 +140,7 @@ unsigned int rds_trans_stats_info_copy(struct rds_info_iterator *iter,
|
|||
rds_info_iter_unmap(iter);
|
||||
down_read(&rds_trans_sem);
|
||||
|
||||
for (i = 0; i < RDS_TRANS_COUNT; i++)
|
||||
{
|
||||
for (i = 0; i < RDS_TRANS_COUNT; i++) {
|
||||
trans = transports[i];
|
||||
if (!trans || !trans->stats_info_copy)
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue