Fix hints for PC floppy drives
authorDavid Zeuthen <davidz@redhat.com>
Fri, 20 Jan 2012 16:12:19 +0000 (11:12 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 20 Jan 2012 16:12:19 +0000 (11:12 -0500)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/udiskslinuxblock.c

index ca4366f..deb63e4 100644 (file)
@@ -275,13 +275,12 @@ update_hints (UDisksLinuxBlock  *block,
           hint_auto = TRUE;
         }
     }
-  else
+
+  /* Floppy drives are not partitionable */
+  if (g_str_has_prefix (device_file, "/dev/fd"))
     {
-      if (g_str_has_prefix (device_file, "/dev/fd"))
-        {
-          hint_system = FALSE;
-          hint_partitionable = FALSE;
-        }
+      hint_system = FALSE;
+      hint_partitionable = FALSE;
     }
 
   /* CD-ROM media / drives are not partitionable, at least not here on Linux */