Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3322166imm; Sun, 14 Oct 2018 17:27:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV61DnnkOkHB41wvkdapUrVARj6dxp4Pietk481KYbbUdVbsnXi9FqyYD73D/C2r6zfQXtDR7 X-Received: by 2002:a63:c642:: with SMTP id x2-v6mr13858914pgg.16.1539563256071; Sun, 14 Oct 2018 17:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539563256; cv=none; d=google.com; s=arc-20160816; b=XfdV5HDRJX02NwiosN7tOZbLxkojHjqJNYDgtsHODlhhLJcHEVyATWajfb+qvj7P4H VadFTfHDprLsGrBQIu/mfCx05Bjb9p2HAKsAsa+X/hSQ0L4U4q3cM09dqMert7igl++6 lTN14NnYv8NTTOWeVMQuFfR/8cfooSYtvU6Mi4iDbXrlZe5fq/5l9JOckg/DDBWNcyW/ UpqCIZqMMQC9O7mxCAm7LHr+byz5blXM3qjY6tQSiPNvlMvLr15syzMnrJf0witCePrN 4V8EkzHWV8G2bxPjQrw7CEq+zZt0NqHk23wHw/m+XdLOSkGAFV8AFNlXGj0dboVIB/Q/ q4eA== 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=0sKwDYMkEyxZ1Qo1QY7o0uIBzvrq0m39a9yCNahQGkIXC85yWdFQ8x3ZlvGLurJGIr TZejL6D/p0x4IJNGsWXs/Wr9tUYypz83bzgODHDn0T7kNzyiucjXoP1ZOKqmov5CD+vZ fE4wGv+tfWLJcj+h+ad5LdP3Llf35z+N/bsb/rr8p+vD73826ccjfKvuEfgpBXDOQyBE 0Uacaid4/G895eV1zykwZoqMDoSKDO07BJxzn3S5CauMlUNM7+i75bFcmM4sh+Vz8hos tT2rOpeRoJemdBiHyf6/u2N1Jpbw9QGlh6om+YvKaUDq2e0n42vkEmjNy3hI1TIWRAys 9RKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FoSppvLU; 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 a80-v6si9214389pfj.195.2018.10.14.17.27.21; Sun, 14 Oct 2018 17:27:36 -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=FoSppvLU; 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 S1726951AbeJOIJH (ORCPT + 99 others); Mon, 15 Oct 2018 04:09:07 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:35807 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbeJOIJF (ORCPT ); Mon, 15 Oct 2018 04:09:05 -0400 Received: by mail-pf1-f195.google.com with SMTP id l17-v6so8768357pff.2; Sun, 14 Oct 2018 17:26:17 -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=FoSppvLUNXKwT2xa/fbQw7RLd1Q/dfkrbveBbCpBA/i034kCFgJHV06NKyQIJv7VNo Jj9/VMVgt2aesbhYwPrzfr7e4cF2QT0I0j2AtCuoaSgLnAGq/NJoaqZ5wXg0XRZ4iKro sqbiQ52A2j11jcMMaYK593iSmBisDlHgNjKabMECdwD+VUsTmAG8CUNnCxDj5NfQZjoM guQ2u3I5hSh1eUhkanjBJ3uVByBvHLLtbkBAzCTaTfhURzJ9V2BXY8mbTaPq34dvK+gj zL0EpmCo7LR4D359gOqlWjIby1UMJNW+K4AZzob//b2I9FWlUIk5VfeT/n7mTxqUV6bV orug== 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=JfnN5yhavzXBYMLB9kyy7BCdS0uj7oDk8jdwNnJkyNTujpQscNUhT9NNTlbOQ5ig/X W5Ph5KRdL6z9+XU1FpKMDpmbDADDhA+u4qgdPIk+r6VZAKTqQyQsBtB1g7zBArrIT7fS 38Helurx80yT9MF8PiH66n3x/1aqI4dldkB1lONP1h5uP5sTI03uBfNVInW0i0ChGmtL tHs1WBydqFrlDlmcjiDvFzKtRJsWEDtCgTXIWLm4kNk/O/NCdSl4GeNSJOLYX8bb3ZYo esCJxRlbkohORfBp4UD3tJfmX8pHfHuH6Ar652E0gM5U3qhmSHx74OpNdd22vYQLBCTi B0KQ== X-Gm-Message-State: ABuFfoius/BiIKh0dciWxJ+PWla3CJqT++iZXw52gLU85jMRnzY4E+MG pQYX3FctgZs9HSQIDGWj9KQ= X-Received: by 2002:a63:2066:: with SMTP id r38-v6mr13951559pgm.289.1539563177544; Sun, 14 Oct 2018 17:26:17 -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 j14-v6sm11387110pgh.52.2018.10.14.17.26.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Oct 2018 17:26:17 -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 v3 14/18] of: unittest: remove unused of_unittest_apply_overlay() argument Date: Sun, 14 Oct 2018 17:24:26 -0700 Message-Id: <1539563070-12969-15-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539563070-12969-1-git-send-email-frowand.list@gmail.com> References: <1539563070-12969-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