forked from Minki/linux
rds: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
This commit is contained in:
parent
5af5a020dd
commit
3754fa747d
@ -78,6 +78,7 @@ void rds_tcp_state_change(struct sock *sk)
|
||||
case TCP_CLOSE_WAIT:
|
||||
case TCP_CLOSE:
|
||||
rds_conn_path_drop(cp, false);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -208,6 +208,7 @@ void rds_send_worker(struct work_struct *work)
|
||||
case -ENOMEM:
|
||||
rds_stats_inc(s_send_delayed_retry);
|
||||
queue_delayed_work(rds_wq, &cp->cp_send_w, 2);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -232,6 +233,7 @@ void rds_recv_worker(struct work_struct *work)
|
||||
case -ENOMEM:
|
||||
rds_stats_inc(s_recv_delayed_retry);
|
||||
queue_delayed_work(rds_wq, &cp->cp_recv_w, 2);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user