lkml.org 
[lkml]   [2016]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v7 04/14] of/numa: remove a duplicated warning
    Date
    This warning has been printed in of_numa_parse_cpu_nodes before.

    Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
    Acked-by: Rob Herring <robh@kernel.org>
    ---
    drivers/of/of_numa.c | 9 ++-------
    1 file changed, 2 insertions(+), 7 deletions(-)

    diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c
    index afaeb9c..8723f64 100644
    --- a/drivers/of/of_numa.c
    +++ b/drivers/of/of_numa.c
    @@ -179,13 +179,8 @@ int of_node_to_nid(struct device_node *device)
    np->name);
    of_node_put(np);

    - if (!r) {
    - if (nid >= MAX_NUMNODES)
    - pr_warn("NUMA: Node id %u exceeds maximum value\n",
    - nid);
    - else
    - return nid;
    - }
    + if (!r)
    + return nid;

    return NUMA_NO_NODE;
    }
    --
    2.5.0

    \
     
     \ /
      Last update: 2016-09-17 09:57    [W:4.325 / U:1.484 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site