fdisk: fix poor coding style
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
01663a53f1
commit
baec3e4913
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue