summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/table.c
diff options
context:
space:
mode:
authorKarel Zak2015-08-04 13:03:14 +0200
committerKarel Zak2015-08-04 13:03:14 +0200
commit1c3c92cd8dbfb856d4262c90ed55c107e21ac408 (patch)
treec6caa150a76bedf6447b09a781c3f1fdab483ae4 /libfdisk/src/table.c
parentlibblkid: remove dead code [coverity scan] (diff)
downloadkernel-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.c10
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;