]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: remove unwanted assert()
authorKarel Zak <kzak@redhat.com>
Tue, 24 Mar 2020 09:52:54 +0000 (10:52 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 15 May 2020 10:01:18 +0000 (12:01 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/label.c

index a18cdeaffbf7d576c4891fd82d8808202bfd87d5..788d2bc1275cd7be8dadd1858616f4537173d04b 100644 (file)
@@ -596,7 +596,6 @@ void fdisk_label_set_changed(struct fdisk_label *lb, int changed)
  */
 int fdisk_label_is_changed(const struct fdisk_label *lb)
 {
-       assert(lb);
        return lb ? lb->changed : 0;
 }