Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1542970imm; Fri, 12 Oct 2018 21:56:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV62YsXJrFVR17U9ZzS6nEEH3ETVtLZrVUWaxYzOHhVbAXgaMcTopI0W33/iysVxtAz8MZp14 X-Received: by 2002:a63:ee43:: with SMTP id n3-v6mr7697348pgk.234.1539406569589; Fri, 12 Oct 2018 21:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539406569; cv=none; d=google.com; s=arc-20160816; b=YMJJVCt0s+OgQqc5tN0GS2I5COUbo/rpwCvVWdOqovHxhcl1gj1LXJeNQNxdOiHuAr YRVqj13g6lhLP4deEU7I1XUEWyap2vIOwxArtAktZE7BufZpZkKFkijvmfLnB8TPQuDM IHNaQdMBaX3VSxs8QtXWbN+EyXGFVRGpdR8h1SNopm9+XhLCyKrCbHeUiydqZbCgTgo1 TdW5s8XPApoY8jmfJyWSoWPjjQuRk6B0vOFJNyK8fxYq5KO+LAE7wR8eqB2JFfS7QIB4 ruzYAwiirKHc9DhHvo6uvC0PZgL4dpyWVmzUKFsOo2j9NihahHSBFPAJIFXWJAJxIiYF H+1Q== 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:dkim-signature; bh=PMEoU3Gz26JMyroIsJaDweM2uFKnZxU+TruAPOzAvDQ=; b=hkNJvmNJMBaC+Mx5eShW9aFciHYiUgtPDxuvIjKqBi8N+ADQIYu6dbVj0OAcdyGN7N LeH4sBifWjrG1aCWznDhAqa7hmn94bOhUYbpg7IJoLesyNd+gUnLdD7ZMDUsQSyYWv6T cGtfAjEQO4pmO6X5rmrCf260wOqwZvK398divnQBVmiR3xP3JaS2ZYPJD62gnP3RTx1A 4Ae94r8OR5d7igCWf+Pf+DLSGFtTTHBOE//8PZkBh0VzYUR3lS4wSLl7RMHTIgM1LJ1r hYjkQsfTh6wc56ONiQcGzeSj+D1yp/uqP7ByYoX3AtuJ35b8r9L0z4qyU9dXS1+47TXr GnUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=laCzalge; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i25-v6si3650136pgi.426.2018.10.12.21.55.55; Fri, 12 Oct 2018 21:56:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=laCzalge; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727181AbeJMMbG (ORCPT + 99 others); Sat, 13 Oct 2018 08:31:06 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43478 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727034AbeJMMbD (ORCPT ); Sat, 13 Oct 2018 08:31:03 -0400 Received: by mail-pl1-f194.google.com with SMTP id 30-v6so6807710plb.10; Fri, 12 Oct 2018 21:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PMEoU3Gz26JMyroIsJaDweM2uFKnZxU+TruAPOzAvDQ=; b=laCzalgeYZJRzC6FMlo4fpiPie/6r4Hc6a54c2Uj5Hy4Tm/eJIIPeV8VYqS8RF6hra O6Sd6K448eGR9X3uAylMFx1KvM71hnf2ozfenx51hRbBkSAJ6Qci6OR0lVnD2LgXg+b+ XyRzB+Zu2fsCRgO1McEDf2qQaMo946NU8/B3R6XxQkuzlm+5YptElzE0cowc83msF67f dHgEKVPRvqBhwepF8w3OLN65+hVj95YJgOghfwuvh7f6V5qGd8cj5RgkD8GCgomwVsD5 B8HnEls8H+wOP44MonWpzw2cWxSk4YCeeyOrx9iCnZjtOsmkKPATNgrwwc72c7Kj8geJ btuw== 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=PMEoU3Gz26JMyroIsJaDweM2uFKnZxU+TruAPOzAvDQ=; b=INrLImIBHql1pXnmCCIHjaV8l0ddvv10dqM56eWdnik4tw85mcXaxOUypJDsWgLkXv hZZ9/XOxqGLZilZtJlDP7IZWBnsxrU3xNr1vkmSXUoZskKzMsIFoGAEAh5zOWJfAnhKU azzaJIDaC0RufSfluo5fL8U61ZH9kko9vK9oqQZnOjKsXswZOZHa6Ry9wNj+DgyEOjS/ kcaT++QrFMg2u+rsVM3BhTu03oALmevFfjJvqGglBZMbdjC5AWRdBE0wae+K8pb4tfyj egzpKwbBphvACkzA97s4z75Niy4UyaVoaxq23bZNxqZupzMcPddvGb9+zheUf+VtvRXB z7mA== X-Gm-Message-State: ABuFfohreOOP+w3+mNtubi01NBCah96H63Af6I52qMF9B1mStCL67Q8b yobpnhnb9tlQPLCDnc7gUJNihHAE X-Received: by 2002:a17:902:6903:: with SMTP id j3-v6mr4683450plk.74.1539406522244; Fri, 12 Oct 2018 21:55:22 -0700 (PDT) Received: from localhost.localdomain (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id h87-v6sm6959462pfj.78.2018.10.12.21.55.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Oct 2018 21:55:21 -0700 (PDT) From: frowand.list@gmail.com To: Rob Herring , Pantelis Antoniou , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Alan Tull , Moritz Fischer Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [PATCH v2 14/18] of: unittest: remove unused of_unittest_apply_overlay() argument Date: Fri, 12 Oct 2018 21:53:34 -0700 Message-Id: <1539406418-18162-15-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539406418-18162-1-git-send-email-frowand.list@gmail.com> References: <1539406418-18162-1-git-send-email-frowand.list@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Rowand Argument unittest_nr is not used in of_unittest_apply_overlay(), remove it. Signed-off-by: Frank Rowand --- drivers/of/unittest.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index efd9c947f192..6d80f474c8f2 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -1419,8 +1419,7 @@ static void of_unittest_destroy_tracked_overlays(void) } while (defers > 0); } -static int __init of_unittest_apply_overlay(int overlay_nr, int unittest_nr, - int *overlay_id) +static int __init of_unittest_apply_overlay(int overlay_nr, int *overlay_id) { const char *overlay_name; @@ -1453,7 +1452,7 @@ static int __init of_unittest_apply_overlay_check(int overlay_nr, } ovcs_id = 0; - ret = of_unittest_apply_overlay(overlay_nr, unittest_nr, &ovcs_id); + ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id); if (ret != 0) { /* of_unittest_apply_overlay already called unittest() */ return ret; @@ -1489,7 +1488,7 @@ static int __init of_unittest_apply_revert_overlay_check(int overlay_nr, /* apply the overlay */ ovcs_id = 0; - ret = of_unittest_apply_overlay(overlay_nr, unittest_nr, &ovcs_id); + ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id); if (ret != 0) { /* of_unittest_apply_overlay already called unittest() */ return ret; -- Frank Rowand