[PATCH] avoid useless initialization

Jim Meyering meyering at redhat.com
Thu Jun 5 07:55:46 UTC 2008


---
 libparted/arch/linux.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 7f9614b..4533ba3 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -302,10 +302,10 @@ _is_sx8_major (int major)

 #ifdef ENABLE_DEVICE_MAPPER
 static int
-_dm_maptype (PedDevice* dev)
+_dm_maptype (PedDevice *dev)
 {
         struct dm_task *dmt;
-        void *next =3D NULL;
+        void *next;
         uint64_t start, length;
         char *target_type =3D NULL;
         char *params;
@@ -322,7 +322,7 @@ _dm_maptype (PedDevice* dev)
         if (!dm_task_run(dmt))
                 goto bad;

-        next =3D dm_get_next_target(dmt, next, &start, &length,
+        next =3D dm_get_next_target(dmt, NULL, &start, &length,
                                   &target_type, &params);

         dev->dmtype =3D strdup(target_type);
--=20
1.5.6.rc0.30.g7c3f3




More information about the parted-devel mailing list