Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1041783rdb; Tue, 15 Aug 2023 22:49:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8XY+wagqn1ytouRNahiL5ipAbL0XPYucKuNjTK5nNPEHXZ6QAjq2VZB7KuQtdsiENpNeF X-Received: by 2002:a05:6830:190:b0:6b7:54cb:7bf9 with SMTP id q16-20020a056830019000b006b754cb7bf9mr945776ota.0.1692164998433; Tue, 15 Aug 2023 22:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692164998; cv=none; d=google.com; s=arc-20160816; b=SUJHf0IdZsPKBDshGYlNS3JYebeO6hhBnVjFMyOr5RpQJCmGsXvrAAnf8f9xyFDlAs UT/YzmnWQFBnbKd9Rv5b5iZAr6S0hAjKxuGR/iyej9naCaQ89YMX+PkFcfi9RUoJ7L4H WpAMKKqByDN70ukhS2CXy5lLNItcB78/d/XQgs7JAPWnaq66yuY0rBUZ+eQ5nGuCDrCx /edJEDEjCsbnaZ8wb7jBQ2Irh2fm74qyZsA/9phDPLxh0SzBkZPb+YD8umEpXMnbUNWM fuqKh7jV3pegmFqvzDlLV0rBFJE2HRjNlYLU3pkAlsPfsqFBk9ZipuKI4Whu0JbnWrH/ jnxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=udcyu91Hb09EkgjZtHyMxXyCDx9UwcqbXOcKNHB7BcU=; fh=cdzbybEE8pI8liEkMwWU+G/cGRl1J9aiI6DhZnf1lZY=; b=tKs1g3NtDqqpB6pKhKyPDZmysy7FdaikQz7ErdCBpTnHgR9rsPEpFVey6WrHPGJXZ8 zJMDCUUIgKM+QCQGn/ITmH/+s1ocWSPyKsfvhoPAj/ZIMwX2cw/MbixmOo1iJzNma7IC lGiIzoI1gT1mwu38+NVUj7Cz0otF4De2w2jAv/gdCfqEGWgje5fLVJ+6ri8UmA5agEsu EtxjT4cRowC2JEAQhZ/JbTxM5l4tDIfa59zpnEK4u00ridPKwZ1pYkftvmterQiuyJs8 JM5O05pUlNRgBOZOLrStX+FYNqhytKLEXmP6AgVfRlLE+bYc7xCzwswUUkSldxBEVh34 vKTA== 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 em18-20020a17090b015200b00262f7dccaecsi10746899pjb.170.2023.08.15.22.49.45; Tue, 15 Aug 2023 22:49:58 -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 S235507AbjHOIDN (ORCPT + 99 others); Tue, 15 Aug 2023 04:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235487AbjHOICm (ORCPT ); Tue, 15 Aug 2023 04:02:42 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 790B3172A for ; Tue, 15 Aug 2023 01:02:40 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 3DF5F60280B69; Tue, 15 Aug 2023 16:02:38 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?time:=20clocksource:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20count?= Date: Thu, 17 Aug 2023 08:33:58 +0800 Message-Id: <20230817003358.3118-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_24_48, RDNS_NONE,SPF_HELO_NONE,SPF_PASS 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 count is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/time/clocksource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 961c8a79b87a..40eb83d9db28 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -1312,7 +1312,7 @@ static ssize_t current_clocksource_show(struct device *dev, struct device_attribute *attr, char *buf) { - ssize_t count = 0; + ssize_t count; mutex_lock(&clocksource_mutex); count = snprintf(buf, PAGE_SIZE, "%s\n", curr_clocksource->name); -- 2.18.2