Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp73829pxb; Tue, 2 Nov 2021 23:46:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4OxJ26WDynIlVllmM++huc9AkBE5xPy/OxjxSFksi+MzFnPjjS2tKC5a8vw33wU6CFP9p X-Received: by 2002:a6b:ed04:: with SMTP id n4mr28682203iog.83.1635921974283; Tue, 02 Nov 2021 23:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635921974; cv=none; d=google.com; s=arc-20160816; b=Kc06JWMISyBmhQ5GIdHLPPuync0mmUNjeueqLFNMOC7MNpjM0n4Eg0JaxhhNGf658P HiFw1MQI7gWD6Cfq/t3ctSpIXVq1t8ObL+1XXyPU69mRfjSvu9g7C6f3vHrRTdkpmLxV v0V9xoN+Qv5VIlCbNHeYFLho7UpI+AImSd0Pqt4w2udUS4LfNpbqgokWDrb+s1jP0imT eMqehguyXMbTTLBxIgKLrKuQugE7c+y59NRYjc0GiSJ38obCCBSsJfaIrGkuTCWdawTo AgJlZlRod5rCuTFs40aooDZN6nZKS9JIlNZNvkW+dKfe1B8U49vzU2SaVLZty5yLxnoe RE4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Mi8r83pUTBrcQ3MNCYSGeibYSRXnJ8qCuYpYc7RJ1PM=; b=rpCSU1Gk0LLROgih+NhS6bCq8beDbdcwTLP6wWV3LbsVPJL5phXSFj1FLslGo+pB3F wqgrirehw5vdXlbO62Nwl1oIFN37rj+CgOq01xXKdsg59Ca9/bM++T8yMxf4NpcrvZLS pLiA4OLxCAYVNaLUn3lox+Sa708xYpYHCX0zT+6uQI0GHPNqIjCAMC5PPEpMpSMbkX9n llDYtmKvPduU3sjx6yzECPtfOZK2eWs7qhXxlM9rtc0KXEdhYrhQ7TuPNKBexwP+1tnB AOKOLCqEBte5oIHNQSfekhytqBkmv+0eNXeKbPcTrMHjlekCXivzo+j3BnpUXENlRKjL vQAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="ZsNvY/1Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si2504209iov.63.2021.11.02.23.45.59; Tue, 02 Nov 2021 23:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="ZsNvY/1Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231906AbhKCGrk (ORCPT + 99 others); Wed, 3 Nov 2021 02:47:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230152AbhKCGrk (ORCPT ); Wed, 3 Nov 2021 02:47:40 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58EE1C061714; Tue, 2 Nov 2021 23:45:04 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id om14so613784pjb.5; Tue, 02 Nov 2021 23:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Mi8r83pUTBrcQ3MNCYSGeibYSRXnJ8qCuYpYc7RJ1PM=; b=ZsNvY/1QZJqQwmSQD0ybdPyn4eJsxCZ886ZuEMim6DMxXNegPsZxY6Mmq4/5K/j0sa 7LnF4lcNyDBe3XmSDd+30N3idJn7j7+z/lGNM116lkLxv6RQbn6PyFnxYdLT0uF9K2j/ m554MJiuBAjQB5HoPtuBw7Q8XFTyt37bFkMoNa6ujxQxo4uLbtYfDTRGZmdsILGmOLXT mxSbbkzDiSPtM80rdR/2krFfIFTQ0NSCBJ5qgUyNQyeacGz259zne9E767hBwXK1RySr 7Q2q9NGYSCDAQwkVL6yNC1LGn0nv0HmENdu69QlCdBm7fC9sFsWFIHvp8tbEcyfxrzlx xRwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Mi8r83pUTBrcQ3MNCYSGeibYSRXnJ8qCuYpYc7RJ1PM=; b=Qifd1BiaGGEeQM2OvSR4GcRJet3lWv8sMzQqr6XVMbaSdtJRPdsLMBrG3OF3lRLAE4 DvJ5eQpLxGkmdwEIvFkPXgmtE8K/2sXWVxS0MPRkapQQLr8YdrzlkbymxCS8ah8F9IFD 4IS5WVwQFfh8e21n1s+WgrOrescHKUEH7IJfYzHlrTzr1Nyk90tEF2piEGowjn4tdCtH RxrEfGRcpN21T07TjVpBsapGtEg6ER0A1VhVtWW2obc6FpSodoBASWaYKjkqhC7s5RPN jd2OImZo60IPqsYOXgKkBM6f6ZjiC71j1n6bwRRGC2wLzKSWcY1wcF9t+2nVfPBSSA/Z rinQ== X-Gm-Message-State: AOAM5320e7DEopHoig+gDeRUo+W2YnuDux9CBH6/1b2SGQ5QJHSyWMEj 5ddxOThuDRPYEiEIkvnL8e0= X-Received: by 2002:a17:902:c206:b0:142:631:5ffc with SMTP id 6-20020a170902c20600b0014206315ffcmr10004182pll.38.1635921903857; Tue, 02 Nov 2021 23:45:03 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id q32sm898389pja.4.2021.11.02.23.45.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 23:45:03 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: zhang.mingyu@zte.com.cn To: anup.patel@wdc.com Cc: atish.patra@wdc.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Zhang Mingyu , Zeal Robot Subject: [PATCH] RISC-V: KVM:Remove unneeded semicolon Date: Wed, 3 Nov 2021 06:44:58 +0000 Message-Id: <20211103064458.26916-1-zhang.mingyu@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Mingyu Eliminate the following coccinelle check warning: arch/riscv/kvm/vcpu.c:167:2-3 arch/riscv/kvm/vcpu.c:204:2-3 Reported-by: Zeal Robot Signed-off-by: Zhang Mingyu --- arch/riscv/kvm/vcpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/kvm/vcpu.c b/arch/riscv/kvm/vcpu.c index e92ba3e5db8c..e3d3aed46184 100644 --- a/arch/riscv/kvm/vcpu.c +++ b/arch/riscv/kvm/vcpu.c @@ -164,7 +164,7 @@ static int kvm_riscv_vcpu_get_reg_config(struct kvm_vcpu *vcpu, break; default: return -EINVAL; - }; + } if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) return -EFAULT; @@ -201,7 +201,7 @@ static int kvm_riscv_vcpu_set_reg_config(struct kvm_vcpu *vcpu, break; default: return -EINVAL; - }; + } return 0; } -- 2.25.1