From patchwork Mon Oct 15 00:24:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 10640975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3C2517E1 for ; Mon, 15 Oct 2018 00:26:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C21FD2899F for ; Mon, 15 Oct 2018 00:26:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B48BB296FF; Mon, 15 Oct 2018 00:26:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C8702899F for ; Mon, 15 Oct 2018 00:26:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726918AbeJOIJG (ORCPT ); Mon, 15 Oct 2018 04:09:06 -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-Google-Smtp-Source: ACcGV61mcTj1VHj1Xm2Jp29axakqI/Ib5fkIEivegpv+3y4RdMrCOAZHVnbgSyEAufJoAyLnEzrWyQ== 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-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;