Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15540526rwd; Sun, 25 Jun 2023 20:05:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IRWtn6D5qx33qegn3muGkkyvDWxtmqdBogHKk49Dh6RLny41QqIdUffsY2/TknUq7omAM X-Received: by 2002:a17:906:fe03:b0:96f:b58e:7e21 with SMTP id wy3-20020a170906fe0300b0096fb58e7e21mr24029115ejb.52.1687748741863; Sun, 25 Jun 2023 20:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687748741; cv=none; d=google.com; s=arc-20160816; b=pftmIvuv9IOP0gpH4GvXOeDykk36xbLR7v3+gY/oMlR8o1LpA/7RRoMhubgBS6dlEN 69COtzSB4KGGXil7HFjCK5MBYDqt4DwE8SJxIjuR7JuJg2dUfT05+u9UHDdgRryTbtNs dphEQ46/2u6Z7/1k01mzYe0KGgU0dw9RuTXbA2Trm/cfHCdAquJA8RN7sXFfBWhLo6Pt hZm2HrrlDG8Jo8BJNbMO8I7Kl8BtPLQswhFwQ/jbbyNntiRCELLE2c5W9qprm+NPLntB gxu0N4DREXY+F9uImZ7eyAoXfVb9JebnsChqMQTkfYt7QswBeaghEMkMMAGuFwAJDhSh NqYA== 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=/8mvT5FzjLHZkEoNYQtrSXFl2tkjo6xxn+lthZUCXxw=; fh=fip8QCni6mELf/B4YWXKkGZhc2jaQYUntzphMnxx+pw=; b=jeh0s+UBzHXGGv3KuqdIvMuC3TzQDm0u8ZlWR1bH9wKWdvedaGi5G0o48sut9cUmAF F1cRngxfgL6LcEX0tJ8uyEht/kZTFCYiXXzH8jNiTaOCq99aCqVVn+P+hCPVcj1X7rYc C/jFynsV1lTlGuyxyAFySdZG/3NJ7txXy60v6TgMu2Xc6jX17TuuN6+tKnD8jpMEszsn s8LIB7fTND6ZQwP/xfDBCjrEy/EQa8+Glm+ZUl/3TrNu9onZy8B4xeDZ7iAdHaCw3c6f tFnIvYyEOvst5WNgKg52Cr14qUMI3cEXZyvSJSBqOLDnwWWdkno/WsDB1nuIDDi81+Iw yfbA== 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 ks17-20020a170906f85100b0098d61cbd807si2259034ejb.10.2023.06.25.20.05.17; Sun, 25 Jun 2023 20:05:41 -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 S230154AbjFZCcq (ORCPT + 99 others); Sun, 25 Jun 2023 22:32:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbjFZCcp (ORCPT ); Sun, 25 Jun 2023 22:32:45 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 4CB8DB1 for ; Sun, 25 Jun 2023 19:32:44 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id B199760671F5C; Mon, 26 Jun 2023 10:32:39 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?time:=20posix-timers:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20error?= Date: Wed, 28 Jun 2023 03:04:00 +0800 Message-Id: <20230627190400.5501-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,T_SCC_BODY_TEXT_LINE 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 error is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/time/posix-timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index 808a247205a9..4e9a1676101b 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -906,7 +906,7 @@ static int do_timer_settime(timer_t timer_id, int tmr_flags, const struct k_clock *kc; struct k_itimer *timr; unsigned long flags; - int error = 0; + int error; if (!timespec64_valid(&new_spec64->it_interval) || !timespec64_valid(&new_spec64->it_value)) -- 2.18.2