diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-03-19 17:45:52 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-03-22 13:06:23 +0300 |
commit | 9f888969fdd6ef11078b893639352ec57824c202 (patch) | |
tree | 059f5981de85e443abf69c648199ad31f26117e8 /lib | |
parent | e1089765b5964f35a426f3abe29ba164422f4165 (diff) | |
download | u-boot-9f888969fdd6ef11078b893639352ec57824c202.tar.xz |
efi_loader: simplify logical expression in efi_disk_add_dev()
To check if a variable is non-zero there is no need for '!= 0'.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index 9563556691..fc0682bc48 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib/efi_loader/efi_disk.c @@ -367,7 +367,7 @@ static efi_status_t efi_disk_add_dev( diskobj->media.block_size = desc->blksz; diskobj->media.io_align = desc->blksz; diskobj->media.last_block = desc->lba - offset; - if (part != 0) + if (part) diskobj->media.logical_partition = 1; diskobj->ops.media = &diskobj->media; if (disk) |