]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: remove uneecessary code
authorKarel Zak <kzak@redhat.com>
Fri, 3 Feb 2012 11:35:10 +0000 (12:35 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Feb 2012 11:35:10 +0000 (12:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisksgilabel.c

index ce919f05e53073f29ecd526cd47f91eeccfb7754..822f55d971815882ebfc151cb9c74755aa7ad06f 100644 (file)
@@ -658,8 +658,8 @@ sgi_add_partition(int n, int sys)
                }
                if (display_in_cyl_units)
                        first *= units_per_sector;
-               else
-                       first = first; /* align to cylinder if you know how ... */
+               /*else
+                       first = first; * align to cylinder if you know how ... */
                if (!last)
                        last = isinfreelist(first);
                if (last == 0) {
@@ -673,8 +673,8 @@ sgi_add_partition(int n, int sys)
                        scround(first), mesg)+1;
        if (display_in_cyl_units)
                last *= units_per_sector;                                     
-       else                                                             
-               last = last; /* align to cylinder if You know how ... */
+       /*else                                                             
+               last = last; * align to cylinder if You know how ... */
        if ((sys == SGI_VOLUME) && (first != 0 || last != sgi_get_lastblock()))
                printf(_("It is highly recommended that eleventh partition\n"
                         "covers the entire disk and is of type `SGI volume'\n"));