[PATCH] osd_login: argc appears unused after defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Yongcheng Yang <yoyang@xxxxxxxxxx>

Signed-off-by: Yongcheng Yang <yoyang@xxxxxxxxxx>
---

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

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux