Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1995078rwb; Sun, 18 Sep 2022 19:38:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5XV8mCnCzx9c4rdJWp4dQgj0L6J7VYM/U/w4+YLkl6Sh8LQKb1CtTO8/9oZVgwFVmU61D0 X-Received: by 2002:aa7:c585:0:b0:453:e1c6:7dc6 with SMTP id g5-20020aa7c585000000b00453e1c67dc6mr4239665edq.245.1663555113074; Sun, 18 Sep 2022 19:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663555113; cv=none; d=google.com; s=arc-20160816; b=QudzrEnj77jJp6gBOW4OLmOIIRNeqzq6q0MjrQzbCkSERFhrErzmTV6kaAkVG3Hmaq Pyx0pnoo/HnlMUgrcVkD7T8RLjDLRq4m/AzYpgOEaqtVqJ/8//9WTfmfQJcaEo5wJhGX HVst7R2OL6emluqhSqRC4ZqQtgaOaNPxsfizgkqhr6g/NAljuOJuLXDExEXdST8ixtyy 9Rvwtc0juACLC+nN5n5xWVRkkP/oooayk9rGGIhotjvNlJgPD1YJ84zP2PjYDfOQRmU9 tAsQQlN12rqrcn1+mDJDAAj9mmNZlSIxIsKeKSaPBJT3Elkl+SoVQxsN8DDn9Frg0znz CbDQ== 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=vcfUcRTbqSuh4+lSx4H+vu9dmF1F9lnmwtlcd+o09sQ=; b=B4emnI2xtZrEUVo5CSpyVHGaItd2dzdEb9U3XxBjSWFs5Fo2qnMJh5qcZbUzTze3P5 PM3jPfvR+5XOIk4+3ZAxfNhW8eGNAaKxfupvCUFm+C6HRTdgK+5KPfAxM9YnOSZjrAvL TE9IbZpx+LMwO3mivLr/u5yTfcYD0JXbpE8g8QtSl7+yiUfRDGXIMtXFwpeP24vrHB2J COsFM1HgvMTDpGlL8eWl246KlJsh5tMaXso2+snP6ktfYbDOA85k4JjOjwWM9Uc1aZD3 3cJcDnyJqBF32bFZ0VA4uDcCkLLYjtQ13Cd2Ni9zTb+8KjyCf5P/PZJU8Iu5A2LhjkO8 a0Ug== 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 fj4-20020a1709069c8400b007799e328e10si25035476ejc.999.2022.09.18.19.38.08; Sun, 18 Sep 2022 19:38:33 -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 S229647AbiISBoP (ORCPT + 99 others); Sun, 18 Sep 2022 21:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiISBoN (ORCPT ); Sun, 18 Sep 2022 21:44:13 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 47232167F1 for ; Sun, 18 Sep 2022 18:44:12 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id EC9CF1E80D75; Mon, 19 Sep 2022 09:41:14 +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 0J9KB7csbfqy; Mon, 19 Sep 2022 09:41:11 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id B8C161E80CAB; Mon, 19 Sep 2022 09:41:11 +0800 (CST) From: Li zeming To: akpm@linux-foundation.org, nicolas@fjasle.eu, masahiroy@kernel.org Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] usr: Remove unnecessary -1 values from int file Date: Mon, 19 Sep 2022 09:44:06 +0800 Message-Id: <20220919014406.3242-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 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 The file variable is assigned first, it does not need to be initialized. 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