Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5795042imw; Wed, 20 Jul 2022 12:43:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vzYaeAVhc3/59hB0saQwaX6CmwF518Ru06Wu0PuoU8K2DmtAx6GY6h0JTnf55C+vEucCWq X-Received: by 2002:a17:903:11c3:b0:16d:1cf9:2b1c with SMTP id q3-20020a17090311c300b0016d1cf92b1cmr5991453plh.20.1658346194499; Wed, 20 Jul 2022 12:43:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658346194; cv=none; d=google.com; s=arc-20160816; b=LEAl1tldgAhJx2mC9UyU9wSqe/fuZlI+ltsHX3B5U/XlxXuVNCOkxFla1d0YLsDdz3 rwvfwKlmzpovDShP1pd9SCQ5V/PeDhagmWajC5jFf9xLkrZd36V7EAgkNSIzheymOgbg 0rguUwmtA/UA4nIwS7pClthKqmjqhHBpL0QiydzGd5NdpRnrEDFzbsXP4feFmPoFeTDk DbyYwAXwyev4J222WxFs1DO/UL77joC1hkfDke5APIy7izDrNJf7nPOEfhNgDzDDbyYr vVhIVDhHGz8cFAllgo683hXGq5IInsYEl4TScJZ0mLBjNL5I47FAIALJMXtmk697K3YJ NNkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=sbpb8QB4MfOrHTLSM1wkQPLx0AgU03fZEBW9GKUvu+Y=; b=YlxkPoD+SjpBuxmch788iTM4H2dTzaL8nkXui+1FacwuIBEwmfdyKbfOcyLKNuLIa+ cXD4lhLoFdVAMDWvxCIf4smsCFUBhWzC9LqkhzesWi7YFQ+ry12DbZhmXSyCobAny02V yktnz1LQjqRCw4w7DZ2T3XZpVe7aY+18PjFyFDXgyqOEOUxis0ZY7IynxKnQb8gjs1Ot hm/2BTedHINHTPw2iQC1ZjnGXUpUA0adxVHZwLrdjuAAvRfd9M1sMZ0bVa+lA3NwDwPe 9gb4vIu8jpSt+VqjURhwcijejwS1AL3aMQLwKtK38vJh3ewjzLj0lhz9B3/4B+aNbCJh o1YA== 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 p7-20020a170902b08700b0016be5eb7c33si20864312plr.75.2022.07.20.12.42.59; Wed, 20 Jul 2022 12:43:14 -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 S231519AbiGTTi6 (ORCPT + 99 others); Wed, 20 Jul 2022 15:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiGTTi5 (ORCPT ); Wed, 20 Jul 2022 15:38:57 -0400 Received: from smtpbg.qq.com (biz-43-154-54-12.mail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44823624A1 for ; Wed, 20 Jul 2022 12:38:52 -0700 (PDT) X-QQ-mid: bizesmtp91t1658345814tdzmi03q Received: from harry-jrlc.. ( [125.70.163.183]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 21 Jul 2022 03:36:45 +0800 (CST) X-QQ-SSF: 0100000000200030C000C00A0000020 X-QQ-FEAT: r/cTxDoDoiH/pTL4nTBpUt0R87I470dGH2+XdWmc445JnQmOS3uO11QkskkhJ 8UjrsAYIGVRgHy9Y+uNQN3QS4pJ8/0fljZSP9Vv1CHlfmPjfpv0rpfb9Mj/eovsxP0uJia7 Aqo3tTG7fStGZ3gFD2qaKq4X32u8OgW0f3cAAPg4ZfRCGuEGDh0fYjiyA9s1+IlrtM9viet G7uTnQucIN/py+0pDSu/yZvJ+c5yzAzy6p4xztZ22rRchjQxHaPowonmtuco5CEAwqyHwOd NYQzSy4LkVlqH9TjcWhibIHJB3yVfaRgN8fifrH2+FNzeTS3b5gLM3IpXYHVphOS7bB6Ieb jpqK6ZQFsOKxIHAiL2mIXqFgBLCRSQHQJnsKqb27eAnc+UzFlxuUxEtBtfIXA== X-QQ-GoodBg: 0 From: Xin Gao To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] um:do not initialise statics to 0. Date: Thu, 21 Jul 2022 03:36:43 +0800 Message-Id: <20220720193643.8081-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RDNS_DYNAMIC, SPF_PASS,T_SPF_HELO_TEMPERROR autolearn=no 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 do not initialise statics to 0. Signed-off-by: Xin Gao --- arch/um/drivers/stdio_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/stdio_console.c b/arch/um/drivers/stdio_console.c index e8b762f4d8c2..e0f7543ef499 100644 --- a/arch/um/drivers/stdio_console.c +++ b/arch/um/drivers/stdio_console.c @@ -90,7 +90,7 @@ static int con_remove(int n, char **error_out) } /* Set in an initcall, checked in an exitcall */ -static int con_init_done = 0; +static int con_init_done; static int con_install(struct tty_driver *driver, struct tty_struct *tty) { -- 2.30.2