lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20230804100506.100162-1-lizetao1@huawei.com>
Date:   Fri, 4 Aug 2023 18:05:06 +0800
From:   Li Zetao <lizetao1@...wei.com>
To:     <stuyoder@...il.com>, <laurentiu.tudor@....com>
CC:     <lizetao1@...wei.com>, <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] bus: fsl-mc: Remove redundant initialization owner in dprc_driver

The fsl_mc_driver_register() will set "THIS_MODULE" to driver.owner when
register a fsl_mc_driver driver, so it is redundant initialization to set
driver.owner in dprc_driver statement. Remove it for clean code.

Signed-off-by: Li Zetao <lizetao1@...wei.com>
---
 drivers/bus/fsl-mc/dprc-driver.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/bus/fsl-mc/dprc-driver.c b/drivers/bus/fsl-mc/dprc-driver.c
index 4b68c84ef485..6377ad52ad5a 100644
--- a/drivers/bus/fsl-mc/dprc-driver.c
+++ b/drivers/bus/fsl-mc/dprc-driver.c
@@ -870,7 +870,6 @@ static const struct fsl_mc_device_id match_id_table[] = {
 static struct fsl_mc_driver dprc_driver = {
 	.driver = {
 		   .name = FSL_MC_DPRC_DRIVER_NAME,
-		   .owner = THIS_MODULE,
 		   .pm = NULL,
 		   },
 	.match_id_table = match_id_table,
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ