Skip to contentSkip to conversation

NFC: pn533: Delete unnecessary assignment for the field “owner”

PATCH New Markus Elfring 1 participant 1 message Nov 3, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFC: pn533: Delete unnecessary assignment for the field “owner”

From: Markus Elfring <[email protected]>
Date: Sun, 3 Nov 2019 12:50:19 +0100

The field “owner” is set by the core.
Thus delete an unneeded initialisation.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

---
 drivers/nfc/pn533/i2c.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nfc/pn533/i2c.c +0 -1
index 7507176cca0a..0207e66cee21 100644
@@ -274,7 +274,6 @@ MODULE_DEVICE_TABLE(i2c, pn533_i2c_id_table);
 static struct i2c_driver pn533_i2c_driver = {
 	.driver = {
 		   .name = PN533_I2C_DRIVER_NAME,
-		   .owner = THIS_MODULE,
 		   .of_match_table = of_match_ptr(of_pn533_i2c_match),
 		  },
 	.probe = pn533_i2c_probe,

--
2.23.0