From patchwork Wed Sep 21 09:27:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongcheng Yang X-Patchwork-Id: 9343109 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E8680607D4 for ; Wed, 21 Sep 2016 09:27:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D82BD2A49F for ; Wed, 21 Sep 2016 09:27:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB4982A4A6; Wed, 21 Sep 2016 09:27:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DE662A49F for ; Wed, 21 Sep 2016 09:27:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754266AbcIUJ1v (ORCPT ); Wed, 21 Sep 2016 05:27:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41448 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbcIUJ1v (ORCPT ); Wed, 21 Sep 2016 05:27:51 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A0C2B31B302 for ; Wed, 21 Sep 2016 09:27:50 +0000 (UTC) Received: from localhost (dhcp12-206.nay.redhat.com [10.66.12.206] (may be forged)) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u8L9RnUx011432; Wed, 21 Sep 2016 05:27:50 -0400 From: yongcheng.yang@gmail.com To: linux-nfs@vger.kernel.org Cc: SteveD@redhat.com, yoyang@redhat.com Subject: [PATCH] osd_login: argc appears unused after defined Date: Wed, 21 Sep 2016 17:27:45 +0800 Message-Id: <1474450065-25925-1-git-send-email-yongcheng.yang@gmail.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 21 Sep 2016 09:27:50 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yongcheng Yang Signed-off-by: Yongcheng Yang --- 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