]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: fix poor coding style
authorKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2012 15:26:08 +0000 (16:26 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2012 15:26:08 +0000 (16:26 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisk.c

index cb67fd3eee666d9507dcaeb7c2b3bcc85a041d40..900ae26de21000ddfc5bdf8422faf11397fcc584 100644 (file)
@@ -2753,7 +2753,7 @@ static int is_ide_cdrom_or_tape(char *device)
 {
        int fd, ret;
 
-       if (fd = open(device, O_RDONLY) < 0)
+       if ((fd = open(device, O_RDONLY) < 0))
                return 0;
        ret = blkdev_is_cdrom(fd);