block: do not initialise statics to 0 or NULL
authorWei Tang <tangwei@cmss.chinamobile.com>
Tue, 24 Nov 2015 01:58:46 +0000 (09:58 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 24 Nov 2015 22:24:25 +0000 (15:24 -0700)
This patch fixes the checkpatch.pl error to genhd.c:

ERROR: do not initialise statics to 0 or NULL

Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/genhd.c

index e5cafa51567c9d589147523c8ab7b43504f9d725..78140b4eea4d587f8cb9766e1c34a15dfd20c8ce 100644 (file)
@@ -1421,7 +1421,7 @@ static DEFINE_MUTEX(disk_events_mutex);
 static LIST_HEAD(disk_events);
 
 /* disable in-kernel polling by default */
-static unsigned long disk_events_dfl_poll_msecs        = 0;
+static unsigned long disk_events_dfl_poll_msecs;
 
 static unsigned long disk_events_poll_jiffies(struct gendisk *disk)
 {