Message ID | 20180905193738.19325-5-robh@kernel.org |
---|---|
State | Accepted |
Commit | 07d44f1f82b780a597fddc677d761417f2af8452 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5340130ljw; Wed, 5 Sep 2018 12:37:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaO+dyesJLdHPa3m22IEEnTZozRJx7bRdwtntji6sNjSf/dYpG6b8fAyDuBnGMtI/QBs7PK X-Received: by 2002:a63:60c1:: with SMTP id u184-v6mr38201293pgb.266.1536176268813; Wed, 05 Sep 2018 12:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176268; cv=none; d=google.com; s=arc-20160816; b=T+52tC4X+3vA3IKD5Vwndp2fEvEiDrluDARN67OV1KKQWbl2BWSq9U5ig5N8m7DicS QmZyAq8c6XZqX3e60BiyydBqmS9f3c70PgtGI+ZUD/aW1acrjs3WkcIwUOPuQh7jKlpM VHvvsay/g1Hf1pGWlXbWZeLhcZDh90c4tlFh6VBk+4MLRL0+ss+KSn2WAprPTY5agnDs NVj2ByZY7Fkt94CDIPKdaev+UwQjJtHhAg8eU69SXmzLumFFwhJogV5cpWUZA7zFwMIC +YXOYqQCNXC95jS6tSjk3xBY/j8HlN/BvKyFvVuj+d2Ej53AkSw/HJ5cHciQHYxmEyBp RCXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=fYOg6CktF2xwcGxesRIbKcKZKAY1qmPWe//TJ6Jiv44=; b=vSBKlkmFzsgn5Oo0LO404CcWumTqK0vOTzYGAkooy10uNPb4kNCKOQF3QybBWNX/I1 mlBRF5qQTaLlQ64qCj4dr0dugv32rS5aaPyseO99+Kf4hCf9wwugKNjpuWtaMkDwCtfM 3fHwJ9KK5SI2N3wn9zEe8IgenwVQl5Y9gZUivqEhTdbNbb2RATvsokbjXiWBOdm5t9Nt 8TJyUb5C2mWm2kHqwRzHd8Q/BAzh5X0IMkV34pBQf/mAS5GivLAVneVsaZOApiHSdQ2x pTD0j86gSaYBRq42lrE9nWogiLXfLJ06fnEw37J4/J9NQ88apwxciVsrlcEMkAb26a2O yz0Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si972023plz.476.2018.09.05.12.37.48; Wed, 05 Sep 2018 12:37:48 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728023AbeIFAJX (ORCPT <rfc822;igor.opaniuk@linaro.org> + 32 others); Wed, 5 Sep 2018 20:09:23 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:39618 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727989AbeIFAJX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Sep 2018 20:09:23 -0400 Received: by mail-oi0-f66.google.com with SMTP id c190-v6so15916934oig.6; Wed, 05 Sep 2018 12:37:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fYOg6CktF2xwcGxesRIbKcKZKAY1qmPWe//TJ6Jiv44=; b=jfJk8ISVLU/8vHZXiB/KdbiO6GEA8ZxuAqyaLVzMpEbn5PcIH+8ODxM/FASaLGfjS/ fOwhh/Z/ImfSZLjgaI0OTTkw0vhj3W0EtEaIYCLsc8pz0fyWfDzsgPzXo4IIzcE/+FlI v7z4ZqhxhG0F+y+IzUWrR8lhZRO0YFeeAcB0l0ZRGwKID750uyUfgwlfwzOuC29rxccK 8GbpEl6GHJUm+jeNL0bImQerepGRnPzP3VFG5mGaCcLuYHOPb52H2vpBzjWIM6Vx75t+ GUsM6PMf5/zYSywThejnxtdq9LH5723vXl2TOQU4PJJQB/Q1JqZXDN3Syd2h+dMVJVSj Lz5w== X-Gm-Message-State: APzg51AMCAl4KrKxYLOKMvMu5iHOy6gP3MzRblxKhRVbZ0DCu06Whg6N vE4VK9Ku8nYQo1si7lmS4Fx1wyE= X-Received: by 2002:aca:3ad4:: with SMTP id h203-v6mr30022138oia.294.1536176264613; Wed, 05 Sep 2018 12:37:44 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u21-v6sm2296053oie.22.2018.09.05.12.37.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:37:44 -0700 (PDT) From: Rob Herring <robh@kernel.org> To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Russell King <linux@armlinux.org.uk>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 04/21] ARM: topology: remove unneeded check for /cpus node Date: Wed, 5 Sep 2018 14:37:21 -0500 Message-Id: <20180905193738.19325-5-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905193738.19325-1-robh@kernel.org> References: <20180905193738.19325-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 24ac3cab411d..60e375ce1ab2 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -94,12 +94,6 @@ static void __init parse_dt_topology(void) __cpu_capacity = kcalloc(nr_cpu_ids, sizeof(*__cpu_capacity), GFP_NOWAIT); - cn = of_find_node_by_path("/cpus"); - if (!cn) { - pr_err("No CPU information found in DT\n"); - return; - } - for_each_possible_cpu(cpu) { const u32 *rate; int len;
Checking for "/cpus" node is not necessary as of_get_cpu_node() will fail later on anyways. The call to of_find_node_by_path() also leaks a reference. So just remove the check. Cc: Russell King <linux@armlinux.org.uk> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org> --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. arch/arm/kernel/topology.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.17.1