Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp2233228rdb; Sun, 27 Aug 2023 18:38:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHzwj6wjF6xkAZbLQeKmvu9IJA4B1pHADY3EHvMjGi/Y7klXF+bVCwjS5fP1LlH7wugwj8 X-Received: by 2002:a81:6cc1:0:b0:57a:6e41:948e with SMTP id h184-20020a816cc1000000b0057a6e41948emr24334036ywc.11.1693186734298; Sun, 27 Aug 2023 18:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693186734; cv=none; d=google.com; s=arc-20160816; b=nd2Wuqt8RFypSbfoD58R7fNf0NmxZMhZDbiaLU617SvrRTQ/7b1W9y56Fk3tjuKIot D4bwb/GstzoJcqQIIEQyvORE+fzPe88D0VmZOIq1i0w0dkn26RG3Bg5J65SAOksA7LzC meGhdKnzMecHeebanA91McJHBfX7wz+ZzubcpACpLFD6tbDTfFYcUvDxnUQ4R9VpOFdy Cj/WV77JkdV+EgGORgMyEAHlHyldtZy1H9vhlHIlVniZZ7QD+72p45xKT/E7uxLBBObn J2T8Y0vXI0epGE20IPZbFrDc5rSxXWIPxk1wfYcfK9D5EqGLV0IlsvdNMxxigr3drGih fvmA== 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=IzkQRYZ7wFyh1PnRixVXvp4KBBpnmZ+jAGmmRSnDVvY=; fh=wHVpxrhBjjdxOlwBmpif3tWvAA/einWXWYK/TjGVA6c=; b=JPal/DQxKo3beEeVvlryQd1VtrLhTRtzp+vmL3dS/q0l9QgMqiQnzHLM2k2/Z5M8KC IlKpMIHKY2CFk3BXh9Zd7yt0zSVZugruYSK7CeGnOXtAU3k0FeuIIo0olrWrXruGfI3C l0qP7+699EG/Wj6XlDN9rclstsFkZrHKJ1edzeWNHKAYu85hXGRMUCD9QCy6s4doxSl9 eBbpZBmDK43/Nv9gOycS40IoUwgTNcB5YIs8oOyZPx2M0lDaC3BGprL4eamF7EUJWmyP dVn7BoNyACNr2rcXM+VyaBkC1cnj4eguSm+6drmB5RPTHtMt4xLmcrdBvOG2h34x9ObD EjNg== 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 t191-20020a6381c8000000b005656a84cfbcsi6257058pgd.152.2023.08.27.18.38.34; Sun, 27 Aug 2023 18:38:54 -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 S229587AbjH1B26 (ORCPT + 99 others); Sun, 27 Aug 2023 21:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbjH1B2g (ORCPT ); Sun, 27 Aug 2023 21:28:36 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id AEB2CCC for ; Sun, 27 Aug 2023 18:28:32 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 3CB3D6049A9D7; Mon, 28 Aug 2023 09:28:19 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: tj@kernel.org, jiangshanlai@gmail.com Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?kernel/workqueue:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20work=5Fflags?= Date: Wed, 30 Aug 2023 01:59:38 +0800 Message-Id: <20230829175938.3000-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 ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/workqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 800b4208dba9..45213c74d391 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -2988,7 +2988,7 @@ static void insert_wq_barrier(struct pool_workqueue *pwq, struct wq_barrier *barr, struct work_struct *target, struct worker *worker) { - unsigned int work_flags = 0; + unsigned int work_flags; unsigned int work_color; struct list_head *head; @@ -3006,7 +3006,7 @@ static void insert_wq_barrier(struct pool_workqueue *pwq, barr->task = current; /* The barrier work item does not participate in pwq->nr_active. */ - work_flags |= WORK_STRUCT_INACTIVE; + work_flags = WORK_STRUCT_INACTIVE; /* * If @target is currently being executed, schedule the -- 2.18.2