Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4640545imm; Mon, 15 Oct 2018 19:40:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV6209LzlVyqH54sZdnyS44NJjQJTW9eNAJ524S96h7UHn7Ycz9ZnVNuiTj/o/5l482Qe6I/E X-Received: by 2002:a17:902:2de4:: with SMTP id p91-v6mr19329636plb.148.1539657657333; Mon, 15 Oct 2018 19:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539657657; cv=none; d=google.com; s=arc-20160816; b=Z4zsyOXYn79T5AWQIA5ZmBNEmW8vQ9QXVK0bBGSxixdCZsTuoOraabXet7+44ot+ll CXmUvPJWje9oZA+ayYdQNiL18v4II/6ZuRaTuPsqHs0s/G4MrgiaKH8OQkmlnfgWhVpu pstYL9yF06F8ovIHMUbxw3/gNqdICGzAilcxuNfyvB5hSjvHa5tqH+s9HNA4xPgHWFcg afm4Mok2IpBdEqzX2wXfqnURoJE22wurDFGVWnf9UBIXBZXiXK60MaydudVkC1U3Mko4 1fbgycWVQG8F30Oe9eo5DPwZIB63ipy1DxMwoNY8UYaQYabOil+6tysmh3AQvylKfdWa 8GfQ== 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=mh/oxPdUHbuY2628BzCLbicUSu4oc28RhR3w7sRyUpbQ+tqP8tmy+yPonVF1BMRHJ4 Mp6Bj4pF0Vwl0MrF4sLsu4hNJXDG7tgqlFy4qPvFBcrjseBxDeRgDHSt+sf+2px91+hm 9v6LMZ2cKTXPZ1WLVhQWAMYkUwFdZiE03o+SGppxcmtUNxN0cPdw1a+iAMdVcLlUGpmN 8ntbkQNKFvmzn/+fqTjQ7eJD79i1jDoJfa19f3GaAbA+EvdF+2bUX4I32d1xSKoAcX+P mv5KVKyBjsw4ctg2wDk9WyI4vAnbJeproDptDb1tbAGJLH0Cis4esG4hecTaUVWK3HDa v7Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sbnB9x9b; 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 94-v6si13207390pla.11.2018.10.15.19.40.42; Mon, 15 Oct 2018 19:40:57 -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=sbnB9x9b; 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 S1727361AbeJPK2H (ORCPT + 99 others); Tue, 16 Oct 2018 06:28:07 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33766 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbeJPK1d (ORCPT ); Tue, 16 Oct 2018 06:27:33 -0400 Received: by mail-pf1-f193.google.com with SMTP id 78-v6so8272593pfq.0; Mon, 15 Oct 2018 19:39:29 -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=sbnB9x9bvtv7VDSSAMjGXcvQrF/l5xTHVstk6hAqmIcw9mpARCvX+OSlzY+cTE4Mma KMS4zR9x4FmFVDJbdrcV0X/GNMauQwLPdWKTne2JC5vP7p90HgWviUHwTT1y0BR1alBK VZpkPZmiV/8TnDwQnAO6RGFeBtaMPw7dy9kdXbl7p53JOUCFYuu6PSINQKYFi5vgNar5 LpXEQC+MMbhR5Zo6Hb6Gqao0AwgKg9DiysMQDx6VzLtLrkgijOaat+k7kmMI/rQu60vY msULaOcHlWZh3Hlzr/bop9t/+HfHVn3nizZioIcXc94bw6K9n/vgaB9TrjdlP+AIu4gf 1hsw== 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=Ub898HN4Ci4ED2fSZEJnb1ax6oPK4hA6UB7yS8ZKfKFOdQhjYsajl9uXP1E/Q8xBAb iAq1OXS+AClSTn0UzEJLTJWhdNJcBrX/KG1+9PvivbuQvyxbgwZthE0GNIREBSRR3GSU ayrOtokXG+p6h5GHcpGJpg/TaxXmfXeBt9H4cLfRIfeQooR4kmH5eMVwOGH4f27GnUW7 yx0dKTZFtoV9I0GS9Nf9p8EpfjPqE8DCOCMZMvIbW6kfjUVYftmYzlmAXkJTWhwyYo9W ayOLBI5z0dU1u9EAbPDgPjP3knXNdkLXVqxWUMMk4TSqYQHzd18fHuxoGQuVOn1fXm// cVpg== X-Gm-Message-State: ABuFfohu7ZopGmt/Dm997J0tgmv1xVAkacj5NhCnclfhzUnSrh3/X6/Q XvZKONmYuCHkxO1jQmMb2jvkVWeM X-Received: by 2002:a62:ff09:: with SMTP id b9-v6mr20045355pfn.46.1539657568819; Mon, 15 Oct 2018 19:39:28 -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 u79-v6sm18620287pfd.117.2018.10.15.19.39.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Oct 2018 19:39:28 -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 v4 14/18] of: unittest: remove unused of_unittest_apply_overlay() argument Date: Mon, 15 Oct 2018 19:37:34 -0700 Message-Id: <1539657458-24401-15-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539657458-24401-1-git-send-email-frowand.list@gmail.com> References: <1539657458-24401-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