From: Shraddha Barke Date: Sat, 5 Sep 2015 13:28:25 +0000 (+0530) Subject: Staging: lustre: lnet: Remove braces for single statement blocks X-Git-Tag: firefly_0821_release~176^2~802^2~2139 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e03b80cfc2d43b1f3ee9e854450aa5691dc92a8a;p=firefly-linux-kernel-4.4.55.git Staging: lustre: lnet: Remove braces for single statement blocks The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c index a23a6d956a4d..345ed4d27cc6 100644 --- a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c +++ b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c @@ -253,11 +253,10 @@ kiblnd_handle_completion(kib_conn_t *conn, int txtype, int status, __u64 cookie) } if (tx->tx_status == 0) { /* success so far */ - if (status < 0) { /* failed? */ + if (status < 0) /* failed? */ tx->tx_status = status; - } else if (txtype == IBLND_MSG_GET_REQ) { + else if (txtype == IBLND_MSG_GET_REQ) lnet_set_reply_msg_len(ni, tx->tx_lntmsg[1], status); - } } tx->tx_waiting = 0;