OSDN Git Service

mac.c: remove dead code
authorJim Meyering <meyering@redhat.com>
Mon, 21 Jul 2008 14:27:52 +0000 (16:27 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 24 Jul 2009 13:04:42 +0000 (15:04 +0200)
* libparted/labels/mac.c (mac_partition_new): Remove dead code.
Return "NULL", not "0".

libparted/labels/mac.c

index 4f62ff7..ee91fb3 100644 (file)
@@ -1170,11 +1170,10 @@ mac_partition_new (
        }
        return part;
 
-       free (mac_data);
 error_free_part:
        free (part);
 error:
-       return 0;
+       return NULL;
 }
 
 static PedPartition*