mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pktcdvd:checkpatch:remove static initialise null
@ 2018-07-18 14:55 RAGHU Halharvi
  0 siblings, 0 replies; 2+ messages in thread
From: RAGHU Halharvi @ 2018-07-18 14:55 UTC (permalink / raw)
  To: linux-kernel, linux-block; +Cc: RAGHU Halharvi, axboe

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

Signed-off-by: RAGHU Halharvi <raghuhack78@gmail.com>
---
 drivers/block/pktcdvd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index a4b4d524c3af..a7dbb7157115 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -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);
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] pktcdvd:checkpatch:remove static initialise null
@ 2018-07-17 17:34 RAGHU Halharvi
  0 siblings, 0 replies; 2+ messages in thread
From: RAGHU Halharvi @ 2018-07-17 17:34 UTC (permalink / raw)
  To: linux-kernel, linux-block; +Cc: RAGHU Halharvi, axboe

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

Signed-off-by: RAGHU Halharvi <raghuhack78@gmail.com>
---
 drivers/block/pktcdvd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index 426e54a9d574..59fb66c0e064 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -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);
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-18 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-18 14:55 [PATCH] pktcdvd:checkpatch:remove static initialise null RAGHU Halharvi
  -- strict thread matches above, loose matches on Subject: below --
2018-07-17 17:34 RAGHU Halharvi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome