projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e108976
)
efi_loader: simplify logical expression in efi_disk_add_dev()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Thu, 19 Mar 2020 14:45:52 +0000
(15:45 +0100)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 22 Mar 2020 10:06:23 +0000
(11:06 +0100)
To check if a variable is non-zero there is no need for '!= 0'.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_disk.c
patch
|
blob
|
history
diff --git
a/lib/efi_loader/efi_disk.c
b/lib/efi_loader/efi_disk.c
index 9563556691bf91d108addf3434cdf4c5f62d2c81..fc0682bc48ca5f2da348e1edf4376d674fb10f43 100644
(file)
--- 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)