ocfs2: trivial fix the switch..case syntax at o2net_state_change()
PATCH 4/4 ocfs2: trivial fix the switch..case syntax at o2net_state_change()
Syntax adjustment, I have to fix printk to pr_info(), or else, checkpatch.pl will alert me.
Signed-off-by Jie Liu <[email protected]>
--- fs/ocfs2/cluster/tcp.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-)
fs/ocfs2/cluster/tcp.c +14 -14
@@ -635,20 +635,20 @@ static void o2net_state_change(struct sock *sk) state_change = sc->sc_state_change; -switch (sk->sk_state) { -/* ignore connecting sockets as they make progress */ -case TCP_SYN_SENT : -case TCP_SYN_RECV : -break ; -case TCP_ESTABLISHED : -o2net_sc_queue_work (sc, &sc->sc_connect_work); -break ; -default : -printk (KERN_INFO "o2net: Connection to " SC_NODEF_FMT -" shutdown, state %d\n" , -SC_NODEF_ARGS (sc), sk->sk_state); -o2net_sc_queue_work (sc, &sc->sc_shutdown_work); -break ; +switch (sk->sk_state) { +/* ignore connecting sockets as they make progress */ +case TCP_SYN_SENT : +case TCP_SYN_RECV : +break ; +case TCP_ESTABLISHED : +o2net_sc_queue_work (sc, &sc->sc_connect_work); +break ; +default : +pr_info ("o2net: Connection to " SC_NODEF_FMT +" shutdown, state %d\n" , +SC_NODEF_ARGS (sc), sk->sk_state); +o2net_sc_queue_work (sc, &sc->sc_shutdown_work); +break ; } out:read_unlock (&sk->sk_callback_lock);
Signature · 1 line
1.7.4.1