From patchwork Mon Feb 27 10:31:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 1748595 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=3Qj5xQWj; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=hyMkx+jO; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQGy94G6Dz1yWw for ; Mon, 27 Feb 2023 21:31:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b+AhxScygGJPn+0CtW+KT8ieXAsZVjEwaA+F8/v6iA0=; b=3Qj5xQWjLrybX2 O1rCWJbd6g/qE4lImzyv/1FhdZDp5ZeR8Rh/YmcfKU0t4EDgwj27XekCshdPzGz69dY9CAcjT5JQn 1odZ5uCL0mWExvC2MTiiVvtMMdwTgbOKp1DLVA2OP/cn2LdHRYg8zZ/tqYcdY0Fwp2+0IfjFfWFV1 lX49VImsPjgThCMGGDrpaD9Nw419TqhHhfD6rScbSUzyr6oH5UMwuw7QG/p2aN/Z8jTlzMo5f9pTN mQZQCt//rO92lLt7Nv7BPc9Px9AlamElkJpey1W5CyNn+RYwe2UefrSj4ZmE71d7oJLwZki3Mg7am R+9hW6MmNWd/gz4rW5ZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWan4-009EYq-Rz; Mon, 27 Feb 2023 10:31:30 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWan0-009EUg-D0 for opensbi@lists.infradead.org; Mon, 27 Feb 2023 10:31:28 +0000 Received: by mail-wr1-x433.google.com with SMTP id v16so2842232wrn.0 for ; Mon, 27 Feb 2023 02:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/Ze+4S8+McZ3JvR/TH/XBHJO99QHFmkQO3DWS7xDsJ4=; b=hyMkx+jO3WY3J7OSuraSrh9AWNiNJ6wQXHZOvRuAMMMJjuUuY4KckARmtfGCWWSxth qOFDL3kPAP7aiNHoIGMsg9BAYOSN3XZ3VOEFrSefUeibCCIKM8x0BUK5jqJPfC3c/xRh k5QuO9I8huUQXaqN2naf+RLcBfaNoiZoCt/pirZk3qwcz5ZPtuuulcOhGyUUuyj2tuu7 IvSR28RxvsDZ9tiXqpE0mGJk//CWuxSna0cNjWMGX9FD8OuTHu55yHg65WWXIB69vOFZ myMpgp9QgMYoGaXtCR1bIPNdj+jp0Afw9YL+p415cLBrb/oNBdnUAvDzpK/+ckWNKMl6 Fp0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/Ze+4S8+McZ3JvR/TH/XBHJO99QHFmkQO3DWS7xDsJ4=; b=F55Ge8ouoAqtmkKiCjhNBeuHEDrqqCQjpy9xXtpx0rREgISEHWJf3GrrismFO4r632 cwsbL6VfLgSvIkr1kTzdFQwE6B2r6qV32xgKM60xxCvbhzzS2KolpQkJ5yLyAUeT8t7W XknRrk/MpvnUsVyNx3slvh8wEtyjl3mWlf8slIj1qyxdFaU8mPPLl6PL3X4Ykxx55hri JS8pK5CZFFABrr+vqnb8Qtf40ZkIdcX7UdIaV9GCXw9bhoM7I7rapAhJuleKO6fn4KSH RyqwtHOC37AQy+KMhH+CGZLh+PrqjbxXzysfu3N9JjyilzqupxzNLnvLMBM8WMOxl6Tv /Hfw== X-Gm-Message-State: AO0yUKUxz+PaoEFWrCXLWtOY3Uj4nKLaAYP20dAloT6G3lcbTqAOulDf O1LlZIjgO8yQSJ9eSX//bMFuzIxOvJOMPnym X-Google-Smtp-Source: AK7set8m/ltkibfpw/AYB2hQ/A8TUKwaiyFco00LY/qSwCYOa2u5I+FzQVyvXeSWdqUDWhzvnF6DnQ== X-Received: by 2002:a5d:69cd:0:b0:2c5:9ef9:9bab with SMTP id s13-20020a5d69cd000000b002c59ef99babmr18610872wrw.43.1677493882420; Mon, 27 Feb 2023 02:31:22 -0800 (PST) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id u6-20020a05600c00c600b003e21dcccf9fsm11933128wmm.16.2023.02.27.02.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 02:31:22 -0800 (PST) From: Andrew Jones To: opensbi@lists.infradead.org Cc: 'Ley Foon Tan ' , 'Atish Patra ' , 'Anup Patel ' , 'Sia Jee Heng ' , Anup Patel Subject: [PATCH v2 05/11] lib: sbi_hsm: Remove unnecessary include Date: Mon, 27 Feb 2023 11:31:00 +0100 Message-Id: <20230227103106.137995-6-ajones@ventanamicro.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230227103106.137995-1-ajones@ventanamicro.com> References: <20230227103106.137995-1-ajones@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230227_023126_502741_C929C554 X-CRM114-Status: GOOD ( 11.05 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Also remove a superfluous semicolon and add a blank line. Signed-off-by: Andrew Jones Reviewed-by: Anup Patel --- lib/sbi/sbi_ecall_hsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:433 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Also remove a superfluous semicolon and add a blank line. Signed-off-by: Andrew Jones Reviewed-by: Anup Patel --- lib/sbi/sbi_ecall_hsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sbi/sbi_ecall_hsm.c b/lib/sbi/sbi_ecall_hsm.c index 703a824493b4..f1b41d073b22 100644 --- a/lib/sbi/sbi_ecall_hsm.c +++ b/lib/sbi/sbi_ecall_hsm.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -45,7 +44,8 @@ static int sbi_ecall_hsm_handler(unsigned long extid, unsigned long funcid, break; default: ret = SBI_ENOTSUPP; - }; + } + if (ret >= 0) { *out_val = ret; ret = 0;