From patchwork Mon Nov 5 15:25:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 10668491 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 D3C9F15A6 for ; Mon, 5 Nov 2018 15:27:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C123F285A9 for ; Mon, 5 Nov 2018 15:27:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4C7928660; Mon, 5 Nov 2018 15:27:49 +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 62BB8285A9 for ; Mon, 5 Nov 2018 15:27:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729670AbeKFArz (ORCPT ); Mon, 5 Nov 2018 19:47:55 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:47000 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387436AbeKFArY (ORCPT ); Mon, 5 Nov 2018 19:47:24 -0500 Received: by mail-pg1-f193.google.com with SMTP id w7so4362569pgp.13; Mon, 05 Nov 2018 07:27:11 -0800 (PST) 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=gXevU2yLJlZLfcV58lfxfJxApOOyRedeEm2yYSVFiMw=; b=RF1RoKj9b56ji/qE+jG0GKgkmnP7aOu7eVCDxnQ0rLdSFWIaWvnGAY8USxdBEU1pnc BkuE9qRekDrGO/mHsnr6F9N2Zo4EGVqyDBBe/cusQy0NNgxJzRy00M9D9bFIxGNe5aDm J3AOYsrdcW91VY8D9FJ3bPydS6lVjuuyKWccrU4IBW0BQfOYAt8TcX52kqauKx8MDLyf B24wiPHCMcQuTKjXAiwZ3NEld0QO9c3HnJ9bydglZne3pY8T7pXKbdhBSinCqRmgtMM9 LGnbm0GAxGdNfrkmpPbNuiDBCq51Zo8l+HKoM2VwKTkIB/n1FRM8RXtFwLcPoOZb5GxI nzyA== 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=gXevU2yLJlZLfcV58lfxfJxApOOyRedeEm2yYSVFiMw=; b=V1M9s6ruMXFhTFyIbluiAe6NSp0ONnTrqmu1KHQtxv8A3uOR6X2PqIFxFgWMoKwoSi mUTJDOgAvbc1camoFhJkChSmvN74K0XW0D2jh1Zuf0Wq/RsEl2yfhl/UkWKUBF/LOif+ MJ9QpiQMDX7gpa0xgEe26j/4OG78TSQdEiFDpTnhi6AXAaw9EwWIXltVvu/zW9GYRN3C bwpnYePO9l6lItgMxk0ghHo8XMDJ4ci1npgez3yrxHQIEaJ99sO9kfXadotCLk5j0xyg bu5ydlB39rfyJ/FJKhAj8KVGDroQV2SHnw1/4GQUCE+kAQVs6xJls8qZ+quE2RsATtpr Gs5g== X-Gm-Message-State: AGRZ1gKxTopYlFL4Akvu8w8wlXO393sE10H6yDdPls3lVHsZ5uUTPTKM gUY3iyq3+yPB6rwYEvK1YyM= X-Google-Smtp-Source: AJdET5eSZaBPAahA5SnMhMZpjrw1UXLfaCpcvEZlSpPiO0D+S/eTKf/7Y2/Rbq/90PSkrl6vx69otg== X-Received: by 2002:a63:5b1f:: with SMTP id p31mr20519904pgb.56.1541431631103; Mon, 05 Nov 2018 07:27:11 -0800 (PST) Received: from localhost.localdomain (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id u76-v6sm37260578pfa.176.2018.11.05.07.27.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Nov 2018 07:27:10 -0800 (PST) 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 v6 14/18] of: unittest: remove unused of_unittest_apply_overlay() argument Date: Mon, 5 Nov 2018 07:25:11 -0800 Message-Id: <1541431515-25197-15-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1541431515-25197-1-git-send-email-frowand.list@gmail.com> References: <1541431515-25197-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. Tested-by: Alan Tull 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 f0139d1e8b63..14838b21ec6a 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -1433,8 +1433,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; @@ -1467,7 +1466,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; @@ -1503,7 +1502,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;