osd_login: argc appears unused after defined
diff mbox

Message ID 1474450065-25925-1-git-send-email-yongcheng.yang@gmail.com
State New
Headers show

Commit Message

Yongcheng Yang Sept. 21, 2016, 9:27 a.m. UTC
From: Yongcheng Yang <yoyang@redhat.com>

Signed-off-by: Yongcheng Yang <yoyang@redhat.com>
---

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(-)

Patch
diff mbox

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