From patchwork Tue Nov 7 09:40:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 118133 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3757495qgn; Tue, 7 Nov 2017 01:41:05 -0800 (PST) X-Google-Smtp-Source: ABhQp+RvY8u42ze075PHs8dnV/b8ze7gQxQ8qhU31hFsGz68c+5j1SIeqgjnehi/3hjVuekdtGKV X-Received: by 10.98.111.71 with SMTP id k68mr19800853pfc.91.1510047665484; Tue, 07 Nov 2017 01:41:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510047665; cv=none; d=google.com; s=arc-20160816; b=WEda2Vdodos3B9CwGxFCd/caKGJGe4DZLPsKBZCU0pwKzPm0Q7hrjBg5I5KUIOZrxl 5Wl6bx+9Bl1/PJEmOZYHm/E+0DKNzXPFuvtnZSdOXG8LhUSLek/FTie8lb9eHkf6uIqx cWuWssj7uduzNO2NGuHmPT7VyFUp8dCZrAUzLp9zhK7wCFNlxNy5U0pVxxu4YTCikHxI 60xWPf+N0JyMiN5Qu3a24H0mYnDiwDgNXIA869A5fbwW+RJsfxdp9HkzEPLHjqPZMebD mzsWkMF5vOP5XzHKuBu03HOxeB4Enntx2WUqci+nzmc8TJtofEb12m3Rsv8/CbgKMreG Oteg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=TC1MAU1LVKv+lH9ajI7eQFFlk1vWVVzleweLS1I4WU0=; b=lYxVQo/oiL1XTUlZpfGlccj9cbabix26GJIhRR+hYU96tGE1h13pOb9OGFDsnZbgmd /tWhKE0wCRrh6x1cFaGSIcnTMA4VqPELOPsby50ogoHR5C7YnzOo7bXXkxYtvP5IdWVh 9EJ4FqQ0JWnQtxEsw5R2MF4974ca45pUR5lRwFOolM2pzRV0O2qwdmBReIaVA+dGMYSb NyJuOoik4WbvLxh8ImvcwEqU331Zgci2OQhMTPPh/q3jECSNXEqpgxa2jPOWxnn/dD6Q Zfymu03qk571JJoeN1gi+JE6bpswvUTOk5JnLZ2H/o9FCSKFp2coZkF2BaBj+qBX5vBM atag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si741652plg.367.2017.11.07.01.41.05; Tue, 07 Nov 2017 01:41:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756793AbdKGJlA (ORCPT + 26 others); Tue, 7 Nov 2017 04:41:00 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:46416 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756769AbdKGJkz (ORCPT ); Tue, 7 Nov 2017 04:40:55 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A3A481435; Tue, 7 Nov 2017 01:40:54 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.162]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E61483F220; Tue, 7 Nov 2017 01:40:52 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] staging: ccree: remove braces for single statement Date: Tue, 7 Nov 2017 09:40:04 +0000 Message-Id: <1510047606-5589-9-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510047606-5589-1-git-send-email-gilad@benyossef.com> References: <1510047606-5589-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove necessary braces for single statement blocks to improve code readabilty. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/ssi_buffer_mgr.c index 838e973..3418c64 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.c +++ b/drivers/staging/ccree/ssi_buffer_mgr.c @@ -1490,9 +1490,8 @@ int cc_map_hash_request_final(struct ssi_drvdata *drvdata, void *ctx, /* add the src data to the sg_data */ cc_add_sg_entry(dev, &sg_data, areq_ctx->in_nents, src, nbytes, 0, true, &areq_ctx->mlli_nents); - if (unlikely(cc_generate_mlli(dev, &sg_data, mlli_params))) { + if (unlikely(cc_generate_mlli(dev, &sg_data, mlli_params))) goto fail_unmap_din; - } } /* change the buffer index for the unmap function */ areq_ctx->buff_index = (areq_ctx->buff_index ^ 1); @@ -1609,9 +1608,8 @@ int cc_map_hash_request_update(struct ssi_drvdata *drvdata, void *ctx, cc_add_sg_entry(dev, &sg_data, areq_ctx->in_nents, src, (update_data_len - *curr_buff_cnt), 0, true, &areq_ctx->mlli_nents); - if (unlikely(cc_generate_mlli(dev, &sg_data, mlli_params))) { + if (unlikely(cc_generate_mlli(dev, &sg_data, mlli_params))) goto fail_unmap_din; - } } areq_ctx->buff_index = (areq_ctx->buff_index ^ swap_index);