Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1507875pxb; Fri, 27 Aug 2021 10:21:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2baGqxpugw/HxyaRjKt75Y3u3yqcj+HCAw3zQpR+qqw4axT7O9/njqoyl3xsnIfFLUIn/ X-Received: by 2002:a17:906:680a:: with SMTP id k10mr10714516ejr.298.1630084909194; Fri, 27 Aug 2021 10:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630084909; cv=none; d=google.com; s=arc-20160816; b=ltpz4SyY4S7MZugZ7S/M13DLaqZtcF1BPRqhE0bhByj4V6oHHEBz8Wni4PSVid/HL7 ebNqgWn82PwCkqxSip7ljtsO7ApxfcaYdMMqhPalvXLAjoiF+v1Hgj2DAjx0iUiDTNO5 BixUUdswx6sCmOJGgv51tJi0lo1mPRXnQxz3/XJycnTGlYKIVNT4MCxozD6ESzPKBgPb 41offMujiW9qbF77smt0ubB2Lt2JbUMeWBeEaLQ/xX+6LjAt4OqHqX+G8R4m4AUWFlpu 7z0HtIqRNo79YW0LExvfmcrqkVlHInpFdWJBiCvSnG6U8jFdmaFEhjZrEn+DJBk24cGQ RNlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YbucOEG92cTvysFDeMdwRxG0Z7EJiToeqt9eqdF1s+4=; b=CrZd2lKyV5c3TvvC2MOeIwEDZ7yaQ29CDUbWhQKRv+xCVRbOP7tC8jn4DtoSmsHveW VypzDP8zLmTepklK+eXbw4CkjdoIz0ekwHcHr24IowvLQe9YVnV5FnRjYrtVGmKEI3yl 0YsmWh+dksygtgKs7ioZVhJqzhnUkvpKihn5UFsBdVMX3ttWTizBBd5YI00rKSZR48R5 xIbzsw7ZxJ5E9a/vAUrD+krJrBAd2RKeQkqJ/cUNYh7tTupuaU5YKFsaAh3lAUKiNobh SFinF81km6qj5235BMlWD3wnPk/30I01mNsKtn9gSUm0VteNivQvOQ0q1FlO+oggzUFZ 47jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si844497edi.122.2021.08.27.10.21.24; Fri, 27 Aug 2021 10:21:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240346AbhH0RSp (ORCPT + 99 others); Fri, 27 Aug 2021 13:18:45 -0400 Received: from smtp13.smtpout.orange.fr ([80.12.242.135]:17599 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240475AbhH0RSo (ORCPT ); Fri, 27 Aug 2021 13:18:44 -0400 Received: from pop-os.home ([90.126.253.178]) by mwinf5d74 with ME id mhHu250093riaq203hHuaw; Fri, 27 Aug 2021 19:17:54 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 27 Aug 2021 19:17:54 +0200 X-ME-IP: 90.126.253.178 From: Christophe JAILLET To: eli.billauer@gmail.com, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH v1 4/4] char: xillybus: Simplify 'xillybus_init_endpoint()' Date: Fri, 27 Aug 2021 19:17:53 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ths first argument of 'xillybus_init_endpoint()' is now useless. Remove it. Signed-off-by: Christophe JAILLET --- drivers/char/xillybus/xillybus.h | 3 +-- drivers/char/xillybus/xillybus_core.c | 4 +--- drivers/char/xillybus/xillybus_of.c | 2 +- drivers/char/xillybus/xillybus_pcie.c | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/char/xillybus/xillybus.h b/drivers/char/xillybus/xillybus.h index 55d47cb13a7b..afce5bb4d127 100644 --- a/drivers/char/xillybus/xillybus.h +++ b/drivers/char/xillybus/xillybus.h @@ -134,8 +134,7 @@ struct xilly_mapping { irqreturn_t xillybus_isr(int irq, void *data); -struct xilly_endpoint *xillybus_init_endpoint(struct pci_dev *pdev, - struct device *dev, +struct xilly_endpoint *xillybus_init_endpoint(struct device *dev, struct xilly_endpoint_hardware *ephw); diff --git a/drivers/char/xillybus/xillybus_core.c b/drivers/char/xillybus/xillybus_core.c index 0ced9ec6977f..02f30140c2d5 100644 --- a/drivers/char/xillybus/xillybus_core.c +++ b/drivers/char/xillybus/xillybus_core.c @@ -1772,8 +1772,7 @@ static const struct file_operations xillybus_fops = { .poll = xillybus_poll, }; -struct xilly_endpoint *xillybus_init_endpoint(struct pci_dev *pdev, - struct device *dev, +struct xilly_endpoint *xillybus_init_endpoint(struct device *dev, struct xilly_endpoint_hardware *ephw) { @@ -1783,7 +1782,6 @@ struct xilly_endpoint *xillybus_init_endpoint(struct pci_dev *pdev, if (!endpoint) return NULL; - (void)pdev; // silence a compiler warning, will be removed endpoint->dev = dev; endpoint->ephw = ephw; endpoint->msg_counter = 0x0b; diff --git a/drivers/char/xillybus/xillybus_of.c b/drivers/char/xillybus/xillybus_of.c index 1a20b286fd1d..4e6e0c19d8c8 100644 --- a/drivers/char/xillybus/xillybus_of.c +++ b/drivers/char/xillybus/xillybus_of.c @@ -120,7 +120,7 @@ static int xilly_drv_probe(struct platform_device *op) if (of_property_read_bool(dev->of_node, "dma-coherent")) ephw = &of_hw_coherent; - endpoint = xillybus_init_endpoint(NULL, dev, ephw); + endpoint = xillybus_init_endpoint(dev, ephw); if (!endpoint) return -ENOMEM; diff --git a/drivers/char/xillybus/xillybus_pcie.c b/drivers/char/xillybus/xillybus_pcie.c index f4be61349ca6..a6ef4ce90649 100644 --- a/drivers/char/xillybus/xillybus_pcie.c +++ b/drivers/char/xillybus/xillybus_pcie.c @@ -124,7 +124,7 @@ static int xilly_probe(struct pci_dev *pdev, struct xilly_endpoint *endpoint; int rc; - endpoint = xillybus_init_endpoint(pdev, &pdev->dev, &pci_hw); + endpoint = xillybus_init_endpoint(&pdev->dev, &pci_hw); if (!endpoint) return -ENOMEM; -- 2.30.2