Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp165076pxb; Mon, 2 Nov 2020 17:28:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxEbiNnQJF2R+pNU3zx9rxqaoleFWTswm8M0/bSLPXVF58sm16+hfP93S0hThOctRh0/Qg X-Received: by 2002:a05:6402:1d13:: with SMTP id dg19mr19772028edb.217.1604366889878; Mon, 02 Nov 2020 17:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604366889; cv=none; d=google.com; s=arc-20160816; b=UD5Vz3MhNGAiaeb8feQck+TeKYjC6LWdG2iQ+H/aT9u4jcInbIcGwbhaxrp6G6QaAb i2L73jY1IJrVgfjrBO9FkbVqDC4HEiPHLF/gn6ACC50WWsXlwowZGWP1+/CzPMgs0DZK wJIeXB5F//K9tS4OqqHxIRcDtnsO720NwkYOq2SFj+/V8081aHW/GLXiw12TC5s3l1LX E3I0UccRFFgZbmOx20RH8wyx/hm6mcvR/KLEuuQ0WSZTPUNa5nRHp1ROGgqTl1Csfr/e 02jwifD+PAB4NmMbYE1VedA7hHIiduJuWXLOHEWzPYvIFmoXAZCSn61uRHIR6i4NKYrx lADg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ww27L5wstDO6v7rCR25h3cm0Dwtq6G2aDWkP8TaynKw=; b=wdvFhoF58/CKjrPHT8WX2wSvVr39CEl2m/qmJdiusy0db0Iy7Vk50WibBPLa9IUGFP NhWdbj07IVyd0qc4FCwmk8IKgpQaiMrbEUEws/RuPy7QkHX+KjFWEptxl1Zk9gxjBg8x Hy/yD2+kYsbrxv2Kgfqtt+dPzoe90TSzeLnc0hlTzutf0ft+FdHjXFNauWsue5bhf2v/ bCgumh1ifMm9cXcKjHyqoTZJ+NmmXeqkabt+RMFD4QY4l8T//8XolnkmL1sHaFkqxv8I v3QqLKUIP/bkVagJWVZfMJsDiRPU9nGSCu0wB9HtTkwxLUR/NDHjfO+QMwLfFX/1ttYF +iDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IUsH8d7h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si12930234edp.120.2020.11.02.17.27.47; Mon, 02 Nov 2020 17:28:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IUsH8d7h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728160AbgKCBUg (ORCPT + 99 others); Mon, 2 Nov 2020 20:20:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:35428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728147AbgKCBUe (ORCPT ); Mon, 2 Nov 2020 20:20:34 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 50B0B2244C; Tue, 3 Nov 2020 01:20:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604366434; bh=2EPBhjUcKwhQAiBveff2wv2l0sDCS99DGzUfWWYOiLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IUsH8d7hp7DC1/7EqKk8ULeybgt+VhPdU91XdTcMBJb2vDVS13mpFcE0YBVrNakYQ BHRKjD+j/jAl5Eo77+6c1glG8ATOQ6tcd1JXkFnQ1bGR0rKgUBrMR/cfRnwBhvpNjc 4fGQ9hCv5jCK+1C9YKq3r0Cc+gPlrj4BeSqyzqNo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zhang Qilong , Pankaj Gupta , Vishal Verma , "Rafael J . Wysocki" , Sasha Levin , linux-nvdimm@lists.01.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 20/24] ACPI: NFIT: Fix comparison to '-ENXIO' Date: Mon, 2 Nov 2020 20:20:03 -0500 Message-Id: <20201103012007.183429-20-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201103012007.183429-1-sashal@kernel.org> References: <20201103012007.183429-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Qilong [ Upstream commit 85f971b65a692b68181438e099b946cc06ed499b ] Initial value of rc is '-ENXIO', and we should use the initial value to check it. Signed-off-by: Zhang Qilong Reviewed-by: Pankaj Gupta Reviewed-by: Vishal Verma [ rjw: Subject edit ] Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/nfit/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 12d980aafc5ff..9d78f29cf9967 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -1553,7 +1553,7 @@ static ssize_t format1_show(struct device *dev, le16_to_cpu(nfit_dcr->dcr->code)); break; } - if (rc != ENXIO) + if (rc != -ENXIO) break; } mutex_unlock(&acpi_desc->init_mutex); -- 2.27.0