summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/sun.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfdisk/src/sun.c')
-rw-r--r--libfdisk/src/sun.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libfdisk/src/sun.c b/libfdisk/src/sun.c
index 7257081f3..30e6b7f1e 100644
--- a/libfdisk/src/sun.c
+++ b/libfdisk/src/sun.c
@@ -1149,13 +1149,11 @@ static const struct fdisk_label_operations sun_operations =
/*
* allocates SUN label driver
*/
-struct fdisk_label *fdisk_new_sun_label(struct fdisk_context *cxt)
+struct fdisk_label *fdisk_new_sun_label(struct fdisk_context *cxt __attribute__ ((__unused__)))
{
struct fdisk_label *lb;
struct fdisk_sun_label *sun;
- assert(cxt);
-
sun = calloc(1, sizeof(*sun));
if (!sun)
return NULL;