Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752677AbbIEN27 (ORCPT ); Sat, 5 Sep 2015 09:28:59 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:34852 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbbIEN2t (ORCPT ); Sat, 5 Sep 2015 09:28:49 -0400 From: Shraddha Barke To: Greg Kroah-Hartman , Oleg Drokin , linux-kernel@vger.kernel.org, Greg Donald , Joe Perches Cc: Shraddha Barke Subject: [PATCH 03/10] Staging: lustre: libcfs: Remove braces for single statement blocks Date: Sat, 5 Sep 2015 18:58:21 +0530 Message-Id: <1441459708-2633-3-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/lustre/libcfs/linux/linux-crypto.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c b/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c index fbbc8a7..328a278 100644 --- a/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c +++ b/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c @@ -71,13 +71,12 @@ static int cfs_crypto_hash_alloc(unsigned char alg_id, * Skip this function for digest, because we use shash logic at * cfs_crypto_hash_alloc. */ - if (key != NULL) { + if (key != NULL) err = crypto_hash_setkey(desc->tfm, key, key_len); - } else if ((*type)->cht_key != 0) { + else if ((*type)->cht_key != 0) err = crypto_hash_setkey(desc->tfm, (unsigned char *)&((*type)->cht_key), (*type)->cht_size); - } if (err != 0) { crypto_free_hash(desc->tfm); -- 2.1.4