From 374d3cd10eebacae3f5e987ce9e8cf8e8418a4db Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Thu, 18 Aug 2022 11:35:48 +0200 Subject: mtd-utils: flash_otp_dump make offset optional Commit 0a5e2fa5c1e4 ("mtd-utils: add optional offset parameter to flash_otp_dump") introduced an offset parameter. This should have been optional, but there was a typo. Fix it. Reported-by: Sergei Antonov Fixes: 0a5e2fa5c1e4 ("mtd-utils: add optional offset parameter to flash_otp_dump") Signed-off-by: Michael Walle Reviewed-by: Sergei Antonov Signed-off-by: David Oberhollenzer --- misc-utils/flash_otp_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/flash_otp_dump.c b/misc-utils/flash_otp_dump.c index f1e1782..324d856 100644 --- a/misc-utils/flash_otp_dump.c +++ b/misc-utils/flash_otp_dump.c @@ -20,7 +20,7 @@ int main(int argc,char *argv[]) int offset = 0; unsigned char buf[16]; - if (argc <= 3 || (strcmp(argv[1], "-f") && strcmp(argv[1], "-u"))) { + if (argc < 3 || (strcmp(argv[1], "-f") && strcmp(argv[1], "-u"))) { fprintf(stderr,"Usage: %s [ -f | -u ] []\n", PROGRAM_NAME); return EINVAL; } -- cgit v1.2.3