Received: by 2002:a89:28c:0:b0:1ef:fe5e:92fe with SMTP id j12csp36145lqh; Sun, 17 Mar 2024 20:07:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLk6/NI3EFliRkv6lMsFoMQYhP+Gez6sOut93NexZPi2JrWikSLQOoXL6K0KZmnvyPXQW1+YNbSiIt7gsQe5JGrPgCFQQW6X1+JZrG+A== X-Google-Smtp-Source: AGHT+IFHEl6661Q1X4P2h02VgiFklcRxypAQjyw0zg4bcpSZ6/xnlFZlTWtQSt9uSZErZcWLWihb X-Received: by 2002:a05:6402:4346:b0:56a:ae8a:acb3 with SMTP id n6-20020a056402434600b0056aae8aacb3mr367285edc.42.1710731274329; Sun, 17 Mar 2024 20:07:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710731274; cv=pass; d=google.com; s=arc-20160816; b=dni6i70yS4DoGtlY4mfbo4C0bcucLv4ZtT9jY1GOEPNbQGmCIfI1zPmtUTLy5RsUPd Yrk7UIFkgiBVVdi7kn8Ex97dTxWPNspGW+ffIbuot42je0MbAiXgDXR9b0ya8DnSAXmt 670mHqnvZAK3PZq+xozAPZt6vsIke1oV2WcqmXitNmtPsrsqVjnPi+I8zpFPWdDxpnef 0Dia2bt2VXpWsWUzWGPGlUOII4I2i6xYO0Y+rMs74HqbD5GtzeZVi/0Ajse/kFuO+d25 v+IpQzoVgpKVvLGTOWo4lWbZADeR1G2QIlFeFdW7KrfW0QfbB3ufoQmm4V+ftWdo56Bq SSGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=Gs2Koj3H2IMmjPuvruDhe6xPjEAhSETGGMq/Fego0ZA=; fh=wLbxQtjMKALnTIQ+bh2JPZKVC0yVGnNznD+pEEPtsJ0=; b=WXgLgjWHG474SdA5W0yDj+5ufqnH0G/Kvqn9tBShTlTb1qR/gkV444TV17uFYTzcmj 0AO0MxhlNHYjGlNaKmPCTifM+vmHd36CwjAETOzZdLOTcqAojN7HL8L/z/nG+qhKuo6M +Il7XGNaWKC7G8TdhZM8xPPW9sXGV4RnPYeUZWT8lhXq98Pib9l3+ISU3MdnBNmOl7Zv zbWJJClJjBSVWazoyTLBHTbDMlxNPc8rnstGGa8UuTnHtK7GeqEeTZ8zHa2pUp/Zevgq nPOqRkqd3qfVxGrRqjngt1Aad4J5A+7tfxZcta04ESwLxjuxowCOsowGDKi22cSTGVXn uWYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-105672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105672-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s7-20020a056402520700b00568a69c071fsi3500348edd.29.2024.03.17.20.07.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 20:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-105672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105672-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D7F451F23147 for ; Mon, 18 Mar 2024 03:07:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58D1D1E893; Mon, 18 Mar 2024 03:07:30 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id A441C1C10; Mon, 18 Mar 2024 03:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710731249; cv=none; b=U6RVpYhqsgWNDd9+YDwXEQ2wnWYcNw2dNE9xN4Ba35PNo/Y6yvOGf2R/EgK1OLrwaukAHSz6lofNSUPIuC2aPIAyw7df+YJYwO3O73lnTgwl+rwU22kv0U1tdG4uEmagFuPEGqWUHSOzO7/nPXl1qwfpYcDai2wzI6IiOQM74sU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710731249; c=relaxed/simple; bh=nyMgqHe9WbiQXU6wIKGTzXWY3Sm2I04U8zrDAQNZVlg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=uCOV/kVIT3Kpp73uL7B3L7FtczT2zVls5/Y+4dhoW9aPMwK060ZTXeMb4D6bUu6dFRy0kGzzHMV5QPrY3OrSDjMIPBw738bnCQyFQvtn65XyWuxI5M5itCDLrZLH4/zT9OHEXobQWyMXWYvEGoQaBRoouYJJG1TA7GHTVrSrSKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 4886760280B58; Mon, 18 Mar 2024 11:07:14 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?blk-pm:=20Remove=20unnecessary=20=E2=80=980?= =?UTF-8?q?=E2=80=99=20values=20from=20ret?= Date: Mon, 18 Mar 2024 11:07:07 +0800 Message-Id: <20240318030707.18198-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- block/blk-pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk-pm.c b/block/blk-pm.c index 42e8420747153..c76d5a3169417 100644 --- a/block/blk-pm.c +++ b/block/blk-pm.c @@ -58,10 +58,10 @@ EXPORT_SYMBOL(blk_pm_runtime_init); */ int blk_pre_runtime_suspend(struct request_queue *q) { - int ret = 0; + int ret; if (!q->dev) - return ret; + return 0; WARN_ON_ONCE(q->rpm_status != RPM_ACTIVE); -- 2.18.2