From patchwork Wed Jan 18 14:42:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 1728274 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=tlPUubwR; 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=hqSOVSpt; 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 4NxpSL6kMvz23fT for ; Thu, 19 Jan 2023 01:44:34 +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=95MS4kaCsyS6EnG/90xj0Ek3QVJgaOrrm+BU8ecvM+0=; b=tlPUubwRe3aa6L oe6IvKw7nD+3oEtrohkdPpWwsoGTw12NirR5KvWI0wFbz5sVmxNlMlNNkGRS4COM8Lw6vhj7bcqE0 TUOZGoban02PXh0aQ2KzRq2vWsKACtYlkS79UkqENuKK7DgnYEsi5WdcLVb75TpacvjpmS1xDWIEo FutzFzwRmlWprNHvAS+KUHkd1StJs+uO7z708RJ+z/gFSxOzy6pzftfdvi2LJe1DnQ23E+KvohUto 7rDvffT3hn5b/tDzlsPUNkaZDNywvvL2Y/GxMD5EvpHBsEb9Mcah3+UXvmqTwGxC7fTQnpl8AnMLO 1aP8q1ItU0B6m/ieIFkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI9fm-001P0e-4t; Wed, 18 Jan 2023 14:44:18 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI9eF-001OCk-HS for opensbi@lists.infradead.org; Wed, 18 Jan 2023 14:42:44 +0000 Received: by mail-wm1-x331.google.com with SMTP id q8so13041727wmo.5 for ; Wed, 18 Jan 2023 06:42:43 -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=VVx3eAYPOKzjX34U9Pp5JYl4xKj4B8LKqRz0eDUP/u8=; b=hqSOVSpt6y1YVIeiV5HKf5OLvuK4Wz3Oag48MkpiSqJOT5EThyeVYCt1lsXYJd/Kyx cHHzFKcyVbzmB9ZjqJZBMp5iq6u4C7ZUeLtMb9skBRMfgAM2JN1nGajhj2dihdOPeCZ6 VK7O501v58iVdxXd6n9cOPto5ILNHdXKd4NjNtrFs7VlYK7Lz60Ri+rOiDQFnNhLyL1V bo6JCZL2JMPnNBwVraangcOd1rzODn4LT6UB3XubD4U+l0qdzUzMTzzovk6a0opYgGJp jsPA7vdStGDvfOo8hHBRUmRgQWE/KcaXbCjwrp93le2pMIFxKr27xbCAkrWesOCFtWMu w1Ng== 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=VVx3eAYPOKzjX34U9Pp5JYl4xKj4B8LKqRz0eDUP/u8=; b=0upIq1Ojil9DNOlyk3KUM1IKQXlDKmLxpSUhlLSARIlcgqNjzrJycp0fs/bZo88e+S 8b/4V9xgrYPRQdh/uo9LPn5eLsXXZa2eaZYVBpdJVnH0flxIFclUkTnjtdJdVN5F2TXA uTtcHhwfGksTyZgsP5scqCYgVA3lqACmE2QYmEKocDRzpzOP9kloJQ6YyYbo9oV2J4i7 jxuGl6HztmO22vgMun+WPdjICbc0U0PxiA0TsLOWB7WalRHrCEKADLBOlNjCwRymORYc g9whYTYJgsjww8rzXJkrUia4upUKFPuNgIk0qpn1BCTnTtLJXio0zIBJorVE+E8z1A8t 58wA== X-Gm-Message-State: AFqh2kr92/4N40fKkIxNVk4uzXm7g1IdDl9kr5uo9iwT66ebcnY+OoWX cySCtK9woKfgs/zA2nsHRd3iLXYfU1+veWwL X-Google-Smtp-Source: AMrXdXup4vcuCGk48oXjHi0ByACKLLF3yL38F7ccL//19S3DjB6aw5GoDsypl1x75BadhWHxP4aamA== X-Received: by 2002:a05:600c:1e09:b0:3d1:f16d:5848 with SMTP id ay9-20020a05600c1e0900b003d1f16d5848mr6810674wmb.26.1674052961748; Wed, 18 Jan 2023 06:42:41 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id b16-20020a05600c4e1000b003dafa04ecc4sm2347069wmq.6.2023.01.18.06.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 06:42:41 -0800 (PST) From: Andrew Jones To: opensbi@lists.infradead.org Cc: 'Atish Patra ' , 'Anup Patel ' , 'Ley Foon Tan ' , 'Sia Jee Heng ' , Anup Patel Subject: [PATCH 05/11] lib: sbi_hsm: Remove unnecessary include Date: Wed, 18 Jan 2023 15:42:28 +0100 Message-Id: <20230118144234.79263-6-ajones@ventanamicro.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118144234.79263-1-ajones@ventanamicro.com> References: <20230118144234.79263-1-ajones@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230118_064243_617107_FE53D73A X-CRM114-Status: GOOD ( 10.66 ) 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:331 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;