summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniu Rosca <roscaeugeniu@gmail.com>2019-07-20 00:26:12 +0300
committerDongjin Kim <tobetter@gmail.com>2021-12-11 12:24:03 +0300
commit851d03c4dd57862a953e91492613e58e00ac88be (patch)
tree2b830209f34202937bd7c8cd3dc0aba31f0b5b4b
parent6c8796f0d242fd9971ea0d2c3d155ef29aeb5323 (diff)
downloadu-boot-851d03c4dd57862a953e91492613e58e00ac88be.tar.xz
ODROID-COMMON: cmd: bcb: Fix duplicated handling in two case-branches
Fix warning V1037 reported by PVS-Studio Static Analyzer: Two or more case-branches perform the same actions. Check lines: 49, 53 Fixes: db7b7a05b267 ("cmd: Add 'bcb' command to read/modify/write BCB fields") Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Change-Id: Iccbd0208ac69eb181e8412cbdfb53fb896be7064
-rw-r--r--cmd/bcb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cmd/bcb.c b/cmd/bcb.c
index 2bd5a744de..3b1c7434e2 100644
--- a/cmd/bcb.c
+++ b/cmd/bcb.c
@@ -46,9 +46,6 @@ static int bcb_is_misused(int argc, char *const argv[])
switch (cmd) {
case BCB_CMD_LOAD:
- if (argc != 3)
- goto err;
- break;
case BCB_CMD_FIELD_SET:
if (argc != 3)
goto err;