Skip to content

Commit

Permalink
block: convert !IS_ERR(p) && p to !IS_ERR_NOR_NULL(p)
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Zhang <kthreadd@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
  • Loading branch information
Yang Zhang authored and Jens Axboe committed Dec 17, 2010
1 parent 7278c9c commit b9f985b
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 @@ -735,7 +735,7 @@ static void *show_partition_start(struct seq_file *seqf, loff_t *pos)
static void *p;

p = disk_seqf_start(seqf, pos);
if (!IS_ERR(p) && p && !*pos)
if (!IS_ERR_OR_NULL(p) && !*pos)
seq_puts(seqf, "major minor #blocks name\n\n");
return p;
}
Expand Down

0 comments on commit b9f985b

Please sign in to comment.