From patchwork Tue Jun 27 07:27:15 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: 106390 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp906664qge; Tue, 27 Jun 2017 00:28:14 -0700 (PDT) X-Received: by 10.101.70.12 with SMTP id v12mr3897811pgq.160.1498548494842; Tue, 27 Jun 2017 00:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498548494; cv=none; d=google.com; s=arc-20160816; b=SLCV5EgR/aJk8qm+KDyedkQvxU7nlbE8hsnitBx3/Dc5YINO5eq+z6JF1PJ4XQJw+Q +YfegXEWlr4buxNq8XroROmeu58qoZU+yiAVAiDI0aXfD4kDhSM9gTl1lRcYSDIu6B/U fjuPoGoKnXz0so5k3fmR17/eOEvX2njp0K8udukXFokYCZeVt4VF/iWTPlSy8MOB/85x gD1vNyT1ANd1kR1bT8NgvnOuTVFrIqYGEc6JQX/oRlmvsWDsmewpL4CdgcSK5TtjCG/V GOy0/TkGAEa2zZlKQLxiUQGBu8zJ0tiVkvT36xOW11wjokIN3JBx1GHQ+hIfItiFbDpO q1TQ== 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=14nxO9j7zKvWoVWpxkSryc9gstquX1XPU07IsIBkvlQ=; b=TWyR4EcaoJgK58xLrV/cNyU8DCiUabFGhbOsBAeiCgVtM06i4T7Xsg8jLYscxH++fq DwQlESd4qE6HzWqj5N5l58X+++holYk2EZC/BsQKTdav1PraTUZsQEhOJLvAktxtJov6 vuAwXWXhKxH4MsuElMms1f7tgJaMS3GEmZ4YLlpZq+ztAEo+QCP8MjPxSUzSdUc5hcYl ALFC1mnn08T7onlkekTIGwvWS+r1AGLFX68c/ta00RBD7eHNMqjCT1TpVOiuNPkmCU7V viyMqOkpRSVqlGkLWrJt70cqM8+iTp+n62ZCqs2yCAT7tVSfvMlF0U2v+s0cKqLtp/uu gHJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 r10si1440045pfg.199.2017.06.27.00.28.14; Tue, 27 Jun 2017 00:28:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752380AbdF0H2H (ORCPT + 1 other); Tue, 27 Jun 2017 03:28:07 -0400 Received: from foss.arm.com ([217.140.101.70]:52432 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752364AbdF0H17 (ORCPT ); Tue, 27 Jun 2017 03:27:59 -0400 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 987901596; Tue, 27 Jun 2017 00:27:53 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.148]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1663D3F4FF; Tue, 27 Jun 2017 00:27:51 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Ofir Drang Subject: [PATCH 03/14] staging: ccree: fix else placement Date: Tue, 27 Jun 2017 10:27:15 +0300 Message-Id: <1498548449-10803-4-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1498548449-10803-1-git-send-email-gilad@benyossef.com> References: <1498548449-10803-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fix cases where the else clause was not located correctly after the if brace. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 3 +-- drivers/staging/ccree/ssi_pm.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/ssi_buffer_mgr.c index 5c46145..3c74ae3 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.c +++ b/drivers/staging/ccree/ssi_buffer_mgr.c @@ -852,8 +852,7 @@ static inline int ssi_buffer_mgr_aead_chain_assoc( sg_index = current_sg->length; if (sg_index > size_of_assoc) { //the first entry in the scatter list contains all the associated data mapped_nents++; - } - else{ + } else { while (sg_index <= size_of_assoc) { current_sg = sg_next(current_sg); //if have reached the end of the sgl, then this is unexpected diff --git a/drivers/staging/ccree/ssi_pm.c b/drivers/staging/ccree/ssi_pm.c index c8c5875..ae1f7f0 100644 --- a/drivers/staging/ccree/ssi_pm.c +++ b/drivers/staging/ccree/ssi_pm.c @@ -110,8 +110,7 @@ int ssi_power_mgr_runtime_put_suspend(struct device *dev) (struct ssi_drvdata *)dev_get_drvdata(dev))) { pm_runtime_mark_last_busy(dev); rc = pm_runtime_put_autosuspend(dev); - } - else { + } else { /* Something wrong happens*/ BUG(); }