bcachefs: Don't print anything when device doesn't have a label
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 3 Jan 2020 23:57:32 +0000 (18:57 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:34 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sysfs.c

index d3713db317cef86ba775f0e0391e9561f8361072..13b48a0fc87d9b48a3337d0b699be991a125c9fe 100644 (file)
@@ -914,8 +914,6 @@ SHOW(bch2_dev)
                        bch2_disk_path_to_text(&out, &c->disk_sb,
                                               ca->mi.group - 1);
                        mutex_unlock(&c->sb_lock);
-               } else {
-                       pr_buf(&out, "none");
                }
 
                pr_buf(&out, "\n");