2016-09-21 09:27:51

by Yongcheng Yang

[permalink] [raw]
Subject: [PATCH] osd_login: argc appears unused after defined

From: Yongcheng Yang <[email protected]>

Signed-off-by: Yongcheng Yang <[email protected]>
---

It's maybe nitpicking. But can avoid the "Shell Check Warning".

Thanks,
Yongcheng

utils/osd_login/osd_login | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/osd_login/osd_login b/utils/osd_login/osd_login
index 08cd2d2..f7f1aa3 100644
--- a/utils/osd_login/osd_login
+++ b/utils/osd_login/osd_login
@@ -48,7 +48,7 @@ usage()
parse_cmdline()
{
argc=$#
- if [ $# -lt 3 ]; then
+ if [ $argc -lt 3 ]; then
usage
exit 1
fi
--
2.4.11