Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5171860rwb; Tue, 6 Sep 2022 20:51:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR5SXq9j36QUOMfe3CHatA5Eb0qJ4bRXa7KyLGcAoGupJa/EmixnuXUejUtkAbwMvh96ISQp X-Received: by 2002:a17:907:6094:b0:73d:9c6b:35f5 with SMTP id ht20-20020a170907609400b0073d9c6b35f5mr937167ejc.140.1662522705121; Tue, 06 Sep 2022 20:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662522705; cv=none; d=google.com; s=arc-20160816; b=b7gdeyziLl8t5N63kmSpKlWxmtnKdQTFBf5F8lVxSfgk46y51iZnpMSKbg1vHBlbRS /z5FtKCNBst1ez96Ra4FSSjkY5XfCwCB/ItAVEmBUVPcNdixKd7jqD+vPcOd599rK0Rc DIc0OOGin1MqAfPgBmqr7Hd9mbbi7Kl2scpDpwUN4re1QUwuoLgKIsklXr408GNVCLpp jXPbqZSZsPsu5uOQucUgrKwrxM4iV5hqCzLOu+pu5gfIkxtEvCPVvXRADolhqPlLY+zt 5MyONoUAJdBYFQFvxk57dhMeih8nE1ew42Hd9UBeTcJ0lVlfznT49TYtH0QPl41k3sbf oIwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=WblISYdyEBdWjqQLct7GnOLG3PsGozq6Q4bC8zvtL/I=; b=QRdw13Kf1l8wmLWjSV4iUS/9yp/Bz9bUBYuLVK0DvAnFvvitFFsTJoWL7nKeoUw/4P A8KPfSAGwysN6Df83MrK+BDYqH79AvT8s78U4uywAaHR8bn6Gj216pBfooqi1+4RDwWE A5DFvuAfI5F3b7gMoRdlJCacE3PvPZWb3C9rS5BPuMzt/26Jf7jUe9Cgp9lghheiBcUN zEaS9Wt9PR+/5eVtP95Dz2x5B1IxXvv/2V40se+mtP81G3ySp/1gXD7ifZDowVywfC8v xedvHGe/rWSiNN7mdF3epzlHGbHojlLMcJFEGXWv0arPQRP5FBfxRZDFt8Fmrqjijd6t VRJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j1-20020a170906430100b0073d6a56691asi9501022ejm.161.2022.09.06.20.51.20; Tue, 06 Sep 2022 20:51:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230006AbiIGDQg (ORCPT + 99 others); Tue, 6 Sep 2022 23:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbiIGDQe (ORCPT ); Tue, 6 Sep 2022 23:16:34 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 86B777C754 for ; Tue, 6 Sep 2022 20:16:32 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id A76F21E80D59; Wed, 7 Sep 2022 11:15:19 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h_29_JqVraBC; Wed, 7 Sep 2022 11:15:17 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id DAFAD1E80D57; Wed, 7 Sep 2022 11:15:16 +0800 (CST) From: Li zeming To: masahiroy@kernel.org, ddiss@suse.de, akpm@linux-foundation.org, nicolas@fjasle.eu Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] usr: Remove unnecessary '-1' values from file Date: Wed, 7 Sep 2022 11:16:20 +0800 Message-Id: <20220907031620.4316-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First execute the open function and assign a value to file. Signed-off-by: Li zeming --- usr/gen_init_cpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c index dc838e26a5b9..ee01e40e8bc6 100644 --- a/usr/gen_init_cpio.c +++ b/usr/gen_init_cpio.c @@ -326,7 +326,7 @@ static int cpio_mkfile(const char *name, const char *location, char s[256]; struct stat buf; unsigned long size; - int file = -1; + int file; int retval; int rc = -1; int namesize; -- 2.18.2