Skip to contentSkip to conversation

pktcdvd:checkpatch:remove static initialise null

PATCH New RAGHU Halharvi 1 participant 1 message Jul 17, 2018 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pktcdvd:checkpatch:remove static initialise null

* Remove checkpatch error due to initialization of static variables to NULL

---
 drivers/block/pktcdvd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/block/pktcdvd.c +2 -2
index 426e54a9d574..59fb66c0e064 100644
@@ -100,8 +100,8 @@ static struct mutex ctl_mutex;	/* Serialize open/close/setup/teardown */
 static mempool_t *psd_pool;
 static struct bio_set *pkt_bio_set;
 
-static struct class	*class_pktcdvd = NULL;    /* /sys/class/pktcdvd */
-static struct dentry	*pkt_debugfs_root = NULL; /* /sys/kernel/debug/pktcdvd */
+static struct class	*class_pktcdvd;    /* /sys/class/pktcdvd */
+static struct dentry	*pkt_debugfs_root; /* /sys/kernel/debug/pktcdvd */
 
 /* forward declaration */
 static int pkt_setup_dev(dev_t dev, dev_t* pkt_dev);
Signature · 1 line
2.17.1