From patchwork Mon Jul 8 20:25:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1129321 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="CP35Trd8"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45jHGs1tNcz9sNk for ; Tue, 9 Jul 2019 06:33:57 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 01896C21DC1; Mon, 8 Jul 2019 20:29:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C5095C21E0D; Mon, 8 Jul 2019 20:27:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 62DBDC21E08; Mon, 8 Jul 2019 20:27:48 +0000 (UTC) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by lists.denx.de (Postfix) with ESMTPS id 7C8B6C21E08 for ; Mon, 8 Jul 2019 20:27:44 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id j6so38282490ioa.5 for ; Mon, 08 Jul 2019 13:27:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZH+xwzfQ1yNUT+dr8ddUlEXHvXeBwEPhSJGcaZLY57A=; b=CP35Trd8jAW8tC6vMElwhlxeinwhuoD+/+ZOD8nn+KlKVcSaC8uQBa15r64cnDkseO EcJTfSnIIL5n1UKLWRWwXTurSJWA98GyFaTZZNW99DqA0GdziYsgtG0J0y5Jz6dCKE/w gu/0Ir+7BVLG7j+wmgjiKJF7YoFYmstM8EDAU= 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:mime-version:content-transfer-encoding; bh=ZH+xwzfQ1yNUT+dr8ddUlEXHvXeBwEPhSJGcaZLY57A=; b=GnNA+FDWF1C47iq56nnJWJzmknytEBVIvDfS3h1YEJ5qEldIQKip9qwdcuH9j02Y9z bsT+oxKq1/p45YiDxUYhNzW/Gd60pbFHn5MsWBM2pV2iyo4REfO8Ky7uPAhh9hMnmoC+ vW0Ybm6azyUvqdVMByA19JnMKBRkrhz37ogxPXCggbopsmEAliSMrMqfMcZst7/zYsKu TOeka0q8oBIfx/SBTe7ZYOAs9dnoUVid1uIdoHyBpn5IwqXZ9/6ycWQbL7qxb6ME3nRy SAsnOyb+MC+Ky1uUpZVqDge53KjdMGFXN2mUKi5sY2VqSOA1seOgXsVjIEf1gnsWUfn8 WE6w== X-Gm-Message-State: APjAAAX9xv4IGTWtExVWuhJK33T4TR1pjLvcLqpRL/fTvLPb0MHbY/c5 aUceaEUA0+3uieblFifHwEcK/Bd2peQ= X-Google-Smtp-Source: APXvYqxiwkIRzJgGHdd4bBnz/WWMT7B//07L+gHZ97dr4DmCtUea2HVFmQZqTQnjUbR8J2Vxy0ZFNQ== X-Received: by 2002:a6b:4107:: with SMTP id n7mr753081ioa.12.1562617663394; Mon, 08 Jul 2019 13:27:43 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id v13sm16692359ioq.13.2019.07.08.13.27.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 13:27:43 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Mon, 8 Jul 2019 14:25:31 -0600 Message-Id: <20190708202553.225715-10-sjg@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog In-Reply-To: <20190708202553.225715-1-sjg@chromium.org> References: <20190708202553.225715-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini Subject: [U-Boot] [PATCH v2 09/31] binman: Drop an unused arg in Entry.Lookup() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The first argument is not used. Remove it. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/entry.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 8cccc2ed5f0..00bb1d190a9 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -85,11 +85,10 @@ class Entry(object): self.ReadNode() @staticmethod - def Lookup(section, node_path, etype): + def Lookup(node_path, etype): """Look up the entry class for a node. Args: - section: Section object containing this node node_node: Path name of Node object containing information about the entry to create (used for errors) etype: Entry type to use @@ -140,7 +139,7 @@ class Entry(object): """ if not etype: etype = fdt_util.GetString(node, 'type', node.name) - obj = Entry.Lookup(section, node.path, etype) + obj = Entry.Lookup(node.path, etype) # Call its constructor to get the object we want. return obj(section, etype, node) @@ -514,7 +513,7 @@ features to produce new behaviours. modules.remove('_testing') missing = [] for name in modules: - module = Entry.Lookup(name, name, name) + module = Entry.Lookup(name, name) docs = getattr(module, '__doc__') if test_missing == name: docs = None