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

index 067dcfa417d17f0fdb7cd40296c874042c4dda47..95007c4b3508c0df6c589d947a41fe260b99fe38 100644 (file)
@@ -2491,7 +2491,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);