aboutsummaryrefslogtreecommitdiff
path: root/util/amdfwtool/amdfwtool.c
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2023-03-11 09:27:53 +0800
committerMartin L Roth <gaumless@gmail.com>2023-03-16 14:40:16 +0000
commita7731cc0c9b5170149f4ebd5f0e9a90335e8e3f7 (patch)
treee7052facc08da6a332f2c3d46448dcc863feac2b /util/amdfwtool/amdfwtool.c
parent17551ae865d187231858e2e359b3c00d87ea042e (diff)
amdfwtool: Remove meaningless double parentheses
Change-Id: I4a9192c55d63531621dd7bc49f1ead7f58dff893 Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73648 Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/amdfwtool/amdfwtool.c')
-rw-r--r--util/amdfwtool/amdfwtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 738123b68f..5546a69291 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -2502,13 +2502,13 @@ int main(int argc, char **argv)
retval = 1;
}
- if ((ctx.rom_size % 1024 != 0)) {
+ if (ctx.rom_size % 1024 != 0) {
fprintf(stderr, "Error: ROM Size (%d bytes) should be a multiple of"
" 1024 bytes.\n\n", ctx.rom_size);
retval = 1;
}
- if ((ctx.rom_size < MIN_ROM_KB * 1024)) {
+ if (ctx.rom_size < MIN_ROM_KB * 1024) {
fprintf(stderr, "Error: ROM Size (%dKB) must be at least %dKB.\n\n",
ctx.rom_size / 1024, MIN_ROM_KB);
retval = 1;