Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp964134lqs; Wed, 6 Mar 2024 02:03:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXFQArsR6OABN/wkHlWibTIBtUpQSB6O/+sMziETrqc22xozcbrZmRD6H3FQNInPqduqF4jsEUwl720dps6RAAeL3Onwh1Xj5UntVRSdw== X-Google-Smtp-Source: AGHT+IFez+q+yIzetoiJIn8+Ysm5hhA/vDyGPGQbDy/n4v3CjhvZJQbVvBdgEuoIaPO/7Rk/DrWD X-Received: by 2002:a17:906:688:b0:a45:16ec:66ef with SMTP id u8-20020a170906068800b00a4516ec66efmr5891467ejb.77.1709719412138; Wed, 06 Mar 2024 02:03:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709719412; cv=pass; d=google.com; s=arc-20160816; b=uvkUIHhzEUfBXDk2fhIgyKve18yt0WITFS/yodB3VDFLvEt1zEakRLq7TwHK96NeWK b3C5qcdWnfaeBpOU+jv7D5AxQWUio3nKcuueKZuLP5kTKIrm3TuD4oTKh8EUMMzmomn1 NeYGB9YkFiJUccll2lwdEohc3ND+DWzzflOY49LuJK6jIY3escav8uOTvlknib0+Uia6 IawLth8ypm5dhuDeOyjOfbM+4zp+ttXDkEPCIdTnynC3RcnlZ/fnFxmflhx4ekknwxdE 0w3qHqDmO2Ap42DY3sNfvTCbFIc9YXYSGEiz2q+Hv1YeQg7f+3UUWm766CLOeOFE4aOs 4A/g== 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=ixgSlo+CB7tP5bRps0gcI7oHvseFQPSuW+KyUukdCQ0=; fh=tskyfnCtDEqDKcEXYs3gaE0WVMOsq1HmS6V+YUxL5mA=; b=Ufz/ykpProvnI+twMa0TvTsJeLZwC+vCHP36uumCkdmmsOPRpZD9UBuUzBZ02QFCEE dDGeGOMAzAy0kqD/j6mQWzyiv2tXMLiLxyLFxyxjy7gKaqe642Dcm/x3ib8WwoSlBRXf zmHDapVMjTNe/fDaUyNuqbp4lVfyGvoDVjdwRfV4AY4Z8wtCuXiLowAqkFFLYpjOjhJb kySjo4ZbAl6i636DbKJU9SrKKgRhGbH/S3RKrogzc3zS1VO2EKBsuQEn+v+jkxePGE/z M4a9+EXGi4qyCUs3aTA/1tWTstvd1jTPJg+Bgb6NTupjeC0KupoCSLO1/aCMrVHPbedm qfSQ==; 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-93698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93698-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 ho19-20020a1709070e9300b00a3fc3123d8esi6158936ejc.562.2024.03.06.02.03.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 02:03:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93698-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-93698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93698-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 DB9DC1F2201D for ; Wed, 6 Mar 2024 10:03:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55AC35FDD4; Wed, 6 Mar 2024 10:02:30 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 7B85D23772; Wed, 6 Mar 2024 10:02: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=1709719349; cv=none; b=R5zXv9Dz+dwrd+sfnwIqXZyMBeS54+HuFbgtr1Ds5IuDmnIs69Hxhm5q/QBNFcfjBbKU9PDonn7rkVspRRYPmtnL2jTS7eedDzCp7/EVztF1idmF18vgpYpfg0EBeB1mA7GzCBq4B+eYPBC549U9/yFKbgje8cvCcHGF9GjB3HY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709719349; c=relaxed/simple; bh=Y/vw2m0mqKjUysumAhyd8tDimnylKASFxMqN+1uA76s=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=lUa6i33Usd13nY+/xkUdjnHgW4xHojVevLPUxNMenswXl4PqP81hX70gwxhD2qZUSTI8NO/OWakavtUVrpuxouBvThvu1ydUo975qXQMmVSv8fYVfOurqbp7Ju2sQuvSW32JLQ9No1ZPj91fTeJvSJzsAdiuM5K3wFnx4G0EUpY= 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 21F12602FFF41; Wed, 6 Mar 2024 18:02:23 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: jonathan.derrick@linux.dev, axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?sed-opal:=20Remove=20unnecessary=20=E2=80=980?= =?UTF-8?q?=E2=80=99=20values=20from=20err?= Date: Wed, 6 Mar 2024 18:02:16 +0800 Message-Id: <20240306100216.69340-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 err is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- block/sed-opal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/sed-opal.c b/block/sed-opal.c index e5b069dde905e..b6887920a84e9 100644 --- a/block/sed-opal.c +++ b/block/sed-opal.c @@ -2153,7 +2153,7 @@ static int lock_unlock_locking_range(struct opal_dev *dev, void *data) u8 lr_buffer[OPAL_UID_LENGTH]; struct opal_lock_unlock *lkul = data; u8 read_locked = 1, write_locked = 1; - int err = 0; + int err; if (build_locking_range(lr_buffer, sizeof(lr_buffer), lkul->session.opal_key.lr) < 0) -- 2.18.2