aboutsummaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/genhd.c')
-rw-r--r--block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index 5fa2b44a72ff..79b9e327f3cb 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -735,7 +735,7 @@ static void *show_partition_start(struct seq_file *seqf, loff_t *pos)
735 static void *p; 735 static void *p;
736 736
737 p = disk_seqf_start(seqf, pos); 737 p = disk_seqf_start(seqf, pos);
738 if (!IS_ERR(p) && p && !*pos) 738 if (!IS_ERR_OR_NULL(p) && !*pos)
739 seq_puts(seqf, "major minor #blocks name\n\n"); 739 seq_puts(seqf, "major minor #blocks name\n\n");
740 return p; 740 return p;
741} 741}