diff options
author | Karel Zak | 2015-08-04 13:03:14 +0200 |
---|---|---|
committer | Karel Zak | 2015-08-04 13:03:14 +0200 |
commit | 1c3c92cd8dbfb856d4262c90ed55c107e21ac408 (patch) | |
tree | c6caa150a76bedf6447b09a781c3f1fdab483ae4 /libfdisk/src/table.c | |
parent | libblkid: remove dead code [coverity scan] (diff) | |
download | kernel-qcow2-util-linux-1c3c92cd8dbfb856d4262c90ed55c107e21ac408.tar.gz kernel-qcow2-util-linux-1c3c92cd8dbfb856d4262c90ed55c107e21ac408.tar.xz kernel-qcow2-util-linux-1c3c92cd8dbfb856d4262c90ed55c107e21ac408.zip |
libfdisk: cleanup assert() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/table.c')
-rw-r--r-- | libfdisk/src/table.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libfdisk/src/table.c b/libfdisk/src/table.c index ea47951c1..f6e71bb7b 100644 --- a/libfdisk/src/table.c +++ b/libfdisk/src/table.c @@ -140,10 +140,6 @@ int fdisk_table_next_partition( { int rc = 1; - assert(tb); - assert(itr); - assert(pa); - if (!tb || !itr || !pa) return -EINVAL; *pa = NULL; @@ -226,9 +222,6 @@ struct fdisk_partition *fdisk_table_get_partition_by_partno( */ int fdisk_table_add_partition(struct fdisk_table *tb, struct fdisk_partition *pa) { - assert(tb); - assert(pa); - if (!tb || !pa) return -EINVAL; @@ -288,9 +281,6 @@ static int table_insert_partition( */ int fdisk_table_remove_partition(struct fdisk_table *tb, struct fdisk_partition *pa) { - assert(tb); - assert(pa); - if (!tb || !pa) return -EINVAL; |