From: RAGHU Halharvi <raghuhack78@gmail.com>
To: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org
Cc: RAGHU Halharvi <raghuhack78@gmail.com>, axboe@kernel.dk
Subject: [PATCH] pktcdvd:checkpatch:remove static initialise null
Date: Wed, 18 Jul 2018 20:25:50 +0530 [thread overview]
Message-ID: <20180718145550.3894-1-raghuhack78@gmail.com> (raw)
* 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
next reply other threads:[~2018-07-18 16:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-18 14:55 RAGHU Halharvi [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-07-17 17:34 RAGHU Halharvi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180718145550.3894-1-raghuhack78@gmail.com \
--to=raghuhack78@gmail.com \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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