Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1278167imj; Sat, 9 Feb 2019 21:28:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IapjvVcdZUCIxYZqA9NVsqKDgjVtfytEnqKskA8dL+rLId2xSn4tgBmKZm0+8h3dZY1oM+b X-Received: by 2002:a63:5902:: with SMTP id n2mr17824615pgb.354.1549776535775; Sat, 09 Feb 2019 21:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549776535; cv=none; d=google.com; s=arc-20160816; b=pY0JU/K2zWiGcUAPTKur1My89NWHys7h7T7lc9QZB8XZ0BU/vYAVe7Dl8HjUJzepyR AMOOXuS+FOUZlUvnxXn+nY6dGOFmCe/yi+gVdKRdr7chfogU/wOu7gdKoC3azNHsny+V Jttrh6cBn/LXWfRNQK4nPt1AZbE9e98MWZn0ocsNitBExZpgnz81j+BqSef9TqcIuRgg w6mbA+ff/9+XO9YvIGxbtz+HD/fBjxTYKhgeyFiw9vmvaUrTTikdUAOGEoosZ5JfJmBx u0xqC2Qb0bRwqgSYC60GwQKCGAhAlvy8xpYCgI4YXZP/sh7AAqv+7AhBCZKZtHWZlmth fipw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=EapvPpI/ufWBps67hVNqvuxtOqEzkJSrLzBz91pEnQw=; b=PD1yDVFO0gyYXPCY2MGRgRADj8HMzdPuIaMsiBMBTrHJKYGGiBvEZIOHKN702KXCDx 0sU0aBJySgpGLGlkgBJhOcC5PuKo5erdOWv/mhqyfZ8og9qCY1YN//F2JJBaCVT+umRB IJlgv4uqdQDEIETrTlASvW6ijiFfHT+tvWNu3cQ/5UIdtG96A5yQ45EHV52uKWRstcMR 3HS+zQjzDiqeJHf2oUWqd1Pw73T48euOkJUtXjaWCv7tP7bJJksqxLWq80X1D9rHwHYz eiudDjY5Ptwxq6zAHRa3klQfqYbijxTsKDPxm+Z3bapUq5mirigUZjNvBrIKDtkvk87Y bhRg== 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 m4si6624807pgk.399.2019.02.09.21.28.02; Sat, 09 Feb 2019 21:28:55 -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 S1725966AbfBJF17 (ORCPT + 99 others); Sun, 10 Feb 2019 00:27:59 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:36340 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725862AbfBJF17 (ORCPT ); Sun, 10 Feb 2019 00:27:59 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7B19F9A484A186AA9593; Sun, 10 Feb 2019 13:27:55 +0800 (CST) Received: from HGHY2Y004646261.china.huawei.com (10.184.12.158) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.408.0; Sun, 10 Feb 2019 13:27:46 +0800 From: Zenghui Yu To: , , CC: , , , , Zenghui Yu Subject: [PATCH] irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table Date: Sun, 10 Feb 2019 05:24:10 +0000 Message-ID: <1549776250-4464-1-git-send-email-yuzenghui@huawei.com> X-Mailer: git-send-email 2.6.4.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.184.12.158] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In current logic, its_parse_indirect_baser() will be invoked twice when allocating Device tables. Add a *break* to omit the unnecessary and annoying (might be ...) invoking. Signed-off-by: Zenghui Yu --- drivers/irqchip/irq-gic-v3-its.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index db20e99..9f529a6 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1946,6 +1946,8 @@ static int its_alloc_tables(struct its_node *its) indirect = its_parse_indirect_baser(its, baser, psz, &order, its->device_ids); + break; + case GITS_BASER_TYPE_VCPU: indirect = its_parse_indirect_baser(its, baser, psz, &order, -- 1.8.3.1