Skip to content

Commit

Permalink
block: do not initialise statics to 0 or NULL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Tang authored and Jens Axboe committed Nov 24, 2015
1 parent d674d41 commit 1fe8f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1fe8f34

Please sign in to comment.