Received: by 2002:a89:28c:0:b0:1ef:fe5e:92fe with SMTP id j12csp32511lqh; Sun, 17 Mar 2024 19:56:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/Dmy0y6jqHzinIE2/aGzEXEjHl697jVUxqghWnJxTrcydj/VUC0/y0ig702ebQs+jlOctNt0LjQcR7kHI8hxetK666yKTnTXnCsp0Ng== X-Google-Smtp-Source: AGHT+IEhI4UVvadLNfbyZjc042BXe6n/OD6h0Wdi9tYbyhou94GQWB4ETnNbPV2ik4ZBob92AMMl X-Received: by 2002:a05:6512:28c:b0:513:cadf:ef0c with SMTP id j12-20020a056512028c00b00513cadfef0cmr7208129lfp.18.1710730568484; Sun, 17 Mar 2024 19:56:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710730568; cv=pass; d=google.com; s=arc-20160816; b=RxzM2YEN/XwP0Z5i4tFvAUxmGG6iqAJDHU82kSb3gyi06CCgkxM1MIhtVxlYhnnVuV jq9/B/GnCrhXwsokeWjYpdhYwzmPioal+YkOz23cd/UWw3mY1DiQoHh7k8qoHq/g0HnM 4qnpFeiceAyJT51zOh7wXrY71tq/8SQY271OLRMS6E4pr7E2k0rYidJb55c7xRjcQBZr wmVVx6F//RnzAq2zWv/mxNCTim2zwu8f6SxASvfldx+L0QmssG1+nwO96gAlYWSXfqEl GSZgTtMYidjPRtmjTAlw34XgEhezl+6MeOV4eu47V0hRSgh70do3dYFMd83/Nb3loXpY OLyg== 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=RTbrqLPtp93r50GZ/ou+ibklczgsrFwCNTGScOayXA8=; fh=wLbxQtjMKALnTIQ+bh2JPZKVC0yVGnNznD+pEEPtsJ0=; b=B8HSTrb/MchToDyjxHyP/7IL9pcUPcGQblmpehhStOX57972fLWqcr7pfD4G7v82p3 JkBuUcw6NPR6bjy9ZWP8Ac8xkFm3WjOnNbC3jA88w/yW+5ZJQy9UsloUK6fFXzoOKbA5 Vku8o4v6Quy08THp6r9dhRjIG4u9g5gk/z6qdXN/wcUxaItgvWQxSVvNwqrnWCbvAY13 xYN7hgxSZPeMjD2fbx/Pr4UjaAQt5JKDWIeXW1ZUQcJGgo04fhgWmzAEv9gbUElWSahE T8xOQAuyyw4Q2Q8ChBgDk/E5dMAq7wur6fdwwLSo7yI/Hjo8RcftHFA8BYr7zG0d8Ye8 KQpw==; 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-105668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105668-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ef12-20020a05640228cc00b00568baff3751si2068787edb.265.2024.03.17.19.56.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 19:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-105668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105668-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 3802B1F231D9 for ; Mon, 18 Mar 2024 02:56:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 012061E51F; Mon, 18 Mar 2024 02:55:58 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 33532F4FB; Mon, 18 Mar 2024 02:55:52 +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=1710730557; cv=none; b=ZR3sLWa4jBBawn/KJZqkBDS5dB52YI9lThpbVKjTBTgJjidb03ImJg9hg5hj4QNSOZGeXZkw4I5w6jZ2CmvGLoqa5+h6rUcoGQkwmoc1ygNPbLs1AL6qLWnzCbHKARP1BkJS/2j5a2xuEB14Md6sodSJA1GoAj/EhBICEsnjWgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710730557; c=relaxed/simple; bh=fkonxBgMRMtaBISYWJpW0F8iOBDGTSaRz61X99BU+Cs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=XmNkObOce3+quYFFhNBHiMkqbv7jfEyvguClWzWxYifF/anKuavbokJxIo/Q2YYqwIWKVKJTzUGFubKf4UEtmQ12x/t6uqUO33mni4zap++BS7cKAgik6tghNNZFpMCcBwWm9k7ZAnJeOsNuYlB/atLWzSIjeXBK1PSg4cH3DJE= 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 355EF6027FD66; Mon, 18 Mar 2024 10:55:32 +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-zoned:=20Remove=20unnecessary=20=E2=80=980?= =?UTF-8?q?=E2=80=99=20values=20from=20ret?= Date: Mon, 18 Mar 2024 10:55:25 +0800 Message-Id: <20240318025525.16439-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-zoned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-zoned.c b/block/blk-zoned.c index d343e5756a9c8..6633e95bc7858 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -255,7 +255,7 @@ int blkdev_zone_mgmt(struct block_device *bdev, enum req_op op, sector_t capacity = bdev_nr_sectors(bdev); sector_t end_sector = sector + nr_sectors; struct bio *bio = NULL; - int ret = 0; + int ret; if (!bdev_is_zoned(bdev)) return -EOPNOTSUPP; -- 2.18.2