Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10626367rwp; Fri, 21 Jul 2023 02:11:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGxkKTFPaLsvJiJnfcK65fFPeTAlPl+EDO9/J1SeKG89q8aL7jNmOgGyxcyRuUq4NG+2uiS X-Received: by 2002:a17:907:9620:b0:982:a022:a540 with SMTP id gb32-20020a170907962000b00982a022a540mr8947023ejc.11.1689930692432; Fri, 21 Jul 2023 02:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689930692; cv=none; d=google.com; s=arc-20160816; b=c93smn8hpYysb0tPkYv78Bject8F3LT+HEEEGAdXxYq6k8noWhTIZfKOX+jE9XaBqJ xb7mgwaayoUjuke2IXHyuaEB6D1Vlnfm0lfN98bfExJVOFk6hLWHwbhDhUwWwZJbWK/p uCqhcrcdNAOsOeeqfuRSgH/zGoSiWp6fxoPOTENwk99NG9I0bIlsqD84enKR7e/XLyWv r+b/aDBFfzOAbEuSsETbCzwtzwcdRf9qW83RVJ9PfYK25cf+O9IGuoiFABWLhBsteztj ANraxSCVmrKssInXhKWMD2gl/Hrz64dyxAF3NrXl4/SQGzbcoCWbWNIMJHqhDjOKsmhN VSrA== 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=cHc5wbfku0XmNwL0qpesEn4++LIBJPE9GEbFufxf1/E=; fh=dVfXhkbP60ZT4KVr26y6imwTSq8xUCJNaPCgpFL70HA=; b=qVz6s8kL57UZqN9bmUgW+PC+E0RVm3zRqybMfqnrgwfRRQCTmI2eTbA6j46/6PhLgl 9fadfDCa341hckCAa6IHi0k+AQ/d5kGJKv6+EARPWw1QceHK5RngZwRjnC5kjgsTx8jg UH8I9GQs0hlimoaxJMROWYyHA2YekCTXIBolNuL8rHwpsFjpO+LdPeXJthfTHkwPZyER UBXuH73wzRA6fzKqBXsKPqCH9z+CZOsFTorVvzijjBXkHUYWVTXbq0yl13MYV5LL+2fO ENCmk7VUF6hlXyLrba5bL9bV1CwNGuou/bOxel8i4MJPmGVjaAF+Frjyh1UMisXoL5rQ pElA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t23-20020a17090605d700b0099381745ba7si2063547ejt.878.2023.07.21.02.11.08; Fri, 21 Jul 2023 02:11:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbjGUI47 (ORCPT + 99 others); Fri, 21 Jul 2023 04:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbjGUI4u (ORCPT ); Fri, 21 Jul 2023 04:56:50 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B2032D76; Fri, 21 Jul 2023 01:56:50 -0700 (PDT) Received: from [185.206.209.215] (helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1qMlwO-0001Cf-Lw; Fri, 21 Jul 2023 10:56:48 +0200 From: Martin Kaiser To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 1/2] hwrng: cn10k - delete empty remove function Date: Fri, 21 Jul 2023 10:54:43 +0200 Message-Id: <20230721085444.496863-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230721085444.496863-1-martin@kaiser.cx> References: <20230721085444.496863-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The remove function is empty, we can delete it. It's ok for a PCI driver to have no remove function. Signed-off-by: Martin Kaiser --- drivers/char/hw_random/cn10k-rng.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/char/hw_random/cn10k-rng.c b/drivers/char/hw_random/cn10k-rng.c index 0cd7e1a8e499..794ec77feb2c 100644 --- a/drivers/char/hw_random/cn10k-rng.c +++ b/drivers/char/hw_random/cn10k-rng.c @@ -213,11 +213,6 @@ static int cn10k_rng_probe(struct pci_dev *pdev, const struct pci_device_id *id) return 0; } -static void cn10k_rng_remove(struct pci_dev *pdev) -{ - /* Nothing to do */ -} - static const struct pci_device_id cn10k_rng_id_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, 0xA098) }, /* RNG PF */ {0,}, @@ -229,7 +224,6 @@ static struct pci_driver cn10k_rng_driver = { .name = "cn10k_rng", .id_table = cn10k_rng_id_table, .probe = cn10k_rng_probe, - .remove = cn10k_rng_remove, }; module_pci_driver(cn10k_rng_driver); -- 2.30.2