Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp8905527ybc; Fri, 29 Nov 2019 19:34:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwr5K/EKp+lZO8VhkGET7OrIkYyu24yeeANZ6DSGB+wyeHnVv9XofNsqSwKIOzpwNEiGd04 X-Received: by 2002:a17:906:49c5:: with SMTP id w5mr49857686ejv.21.1575084889265; Fri, 29 Nov 2019 19:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575084889; cv=none; d=google.com; s=arc-20160816; b=bSz3pcbrTRyYzHZfQGolDOHZTjoSlrczloyl67d7SdS/B8vITxYvRpxt+QKso1bsxh tKjZJaNGHPuoGTnA4Z7fM5in5wnpcBPtTMyCSrsmouF11APUeGtsAfCIp6bj3T0u+sFH f6xm35kBSk0WVDFXMZ7tGIyD5JPD6tI28XN5POngfXXPiDA4iCCUWHhvhGaudHROEsQs 5436hfjLa9a5JH6D/8vKZ2C/aMM4Ljis9kwPKooSldOan+OW+xbsbRW03hB990Vy1biZ Wc2eEDoKZSXH/Zd+6AYG/pdHup0SmAJbjgw3RmVQ+8mtWiAExrkNHA3dSW/bupdKEYcm lw7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jWEKw/qzuClD9sCkcXZ0Z9XmIry9fI/lnDkC74fTfq0=; b=Wl7/N9Vwc3BD+XkygOcjVA6sFJThyldJCAWPp0/OVSMKqf750YejOafv2Q1pWS7VXl 5LFRUcgyBACmpt4NBaqYbTvWOScvhJaaOzKpfWnvcYSKyYsQ12wextJhYKPsxBdrQC/2 6qeWWTSTOJPiJaTTvRTleiHNO5HNX3IAZ3R4OQvjAFlN0/4ZabjmnYwQKOH+m1615AW9 hUq1r6b47z8KY1nPD54Hg+Slim0WCkamojGbmEDYCMv3soIzQKGNHQXnLUGogVNl0mlt ycoKDg00COScUGAZF8pnCrB08NIbt0woANMzKLHXWe5OxSMiWT2afYY6223jxQTYSBwl DHSg== 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 z5si15240106ejm.51.2019.11.29.19.34.13; Fri, 29 Nov 2019 19:34:49 -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 S1727200AbfK3Dbo (ORCPT + 99 others); Fri, 29 Nov 2019 22:31:44 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:42428 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727142AbfK3Dbo (ORCPT ); Fri, 29 Nov 2019 22:31:44 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3F144FF97D9E9D257E9E; Sat, 30 Nov 2019 11:31:41 +0800 (CST) Received: from linux-XCyijm.huawei.com (10.175.104.212) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Sat, 30 Nov 2019 11:31:32 +0800 From: Heyi Guo To: , , CC: , Heyi Guo , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Jiri Kosina Subject: [PATCH] trivial: kvm/arm: merge cases to reduce code lines Date: Sat, 30 Nov 2019 11:30:29 +0800 Message-ID: <20191130033029.61059-1-guoheyi@huawei.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.212] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It seems a little confusing for KVM_CAP_ARM_SET_DEVICE_ADDR to have a separate branch while it doesn't have any difference with the above cases. So we merge it to the above cases, which can also save 2 lines. Signed-off-by: Heyi Guo Cc: Marc Zyngier Cc: James Morse Cc: Julien Thierry Cc: Suzuki K Poulose Cc: Jiri Kosina --- virt/kvm/arm/arm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index 86c6aa1cb58e..6f94080969d1 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -197,8 +197,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_IMMEDIATE_EXIT: case KVM_CAP_VCPU_EVENTS: case KVM_CAP_ARM_IRQ_LINE_LAYOUT_2: - r = 1; - break; case KVM_CAP_ARM_SET_DEVICE_ADDR: r = 1; break; -- 2.19.1