OSDN Git Service

Revert "If we cannot create a new PedDisk for the device we're looking at, return...
authorJim Meyering <jim@meyering.net>
Wed, 1 Aug 2007 07:44:56 +0000 (09:44 +0200)
committerJim Meyering <jim@meyering.net>
Wed, 1 Aug 2007 07:44:56 +0000 (09:44 +0200)
The reverted change causes almost all tests to fail.

This reverts commit a6f86144c0b5fd07c462e256bc7b54095c7b8e7a.

libparted/device.c

index 6cee5aa..cbf5a38 100644 (file)
@@ -189,10 +189,6 @@ ped_device_get (const char* path)
        ped_free (normal_path);
        if (!walk)
                return NULL;
-
-       if (!ped_disk_new (walk))
-               return NULL;
-
        _device_register (walk);
        return walk;
 }