From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752810AbbIEN3I (ORCPT ); Sat, 5 Sep 2015 09:29:08 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34939 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbbIEN3B (ORCPT ); Sat, 5 Sep 2015 09:29:01 -0400 From: Shraddha Barke To: Greg Kroah-Hartman , Oleg Drokin , linux-kernel@vger.kernel.org, Greg Donald , Joe Perches Cc: Shraddha Barke Subject: [PATCH 07/10] Staging: lustre: lnet: Remove braces for single statement blocks Date: Sat, 5 Sep 2015 18:58:25 +0530 Message-Id: <1441459708-2633-7-git-send-email-shraddha.6596@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441459708-2633-1-git-send-email-shraddha.6596@gmail.com> References: <1441459708-2633-1-git-send-email-shraddha.6596@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c index a23a6d9..345ed4d 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; -- 2.1.4