Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3186291pxb; Mon, 9 Nov 2020 05:07:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1lIGMTlNfdemEYyCAggphvjFV29T+vPVq0EH46HR+sHLTidtGQk9YkLd7x0MgjTLCLnJ6 X-Received: by 2002:a17:906:3b89:: with SMTP id u9mr14697576ejf.436.1604927272396; Mon, 09 Nov 2020 05:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604927272; cv=none; d=google.com; s=arc-20160816; b=LNQ4vmL3fp7yo2liHMqHpUJgiwUlXCOUaIWWrI4p77OgT63mGemdBzjU5zkQ9PzH+3 n2Vw+aA7NSqdCP4Vi7L/HgVxGAoVsSdcVlmKZaRqlPbxcqx5V0aZIbIxJcWlZ0RW/HmE 6TOI//JwxO9JzeFGXFeVU2OcQp46GwATgCVqRRR1rimuVedK8HdHVATdIOihN+YamMqc rHsI42o8Y9UTiqwnnSFDI6gkuJFUUO7BAXKZcTqaWGA1PrJf49pNXFUWIRATaw6ZjJ9i tfQCD4C4Kwh7BhvRhOzYJ6eKRCAvmXm5B4+SW+fyLJ3JGAbdoh4l5RrUP52G8SBj6utl KbYA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ElX6DAdaBGgGp9a7jLCulmqHzf7SxP1d6kNeMmTihNg=; b=lgmxiXs08lbiAxOB4A1TbgzTgGMSWcJ+DN2YnO0DXQslV0/uv3cb5Fu88LcVb6Bgab /Jv8lvCNaInDIxnwZRljedd/o5lahjMu+n757ndZpjxSCy+j/pucT9EDQoF+Yk1oJoA5 u2Du2ttEE+NG2ydg2yILXvw1eWhdQLVdekuFVeuo5nAs+OdAu/JU7qUGeLyaFd2dFwg3 wn2QfrZjrvhYyJaHP9sPUhRbg7CS9P0aFnNpIEZ/fuMnww6fvJ85IiuX6Y3kpMJl6hal AsqGzV7yk2K/ixFjePR1t1AO4Rn4jZRzoTHezEwIj77iTBGl1IC6bWK56/1vS8dQFiWC E9Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0zbJCGTR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si7243576edn.23.2020.11.09.05.07.27; Mon, 09 Nov 2020 05:07:52 -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=0zbJCGTR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730941AbgKINFu (ORCPT + 99 others); Mon, 9 Nov 2020 08:05:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:57762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730761AbgKINEv (ORCPT ); Mon, 9 Nov 2020 08:04:51 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 53BC220789; Mon, 9 Nov 2020 13:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604927090; bh=joCXeRGwe21RpZNQk673bdZlBSD3CKvOS7m04EABw/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0zbJCGTReZZxrI6/rCZts1uWjOo+G6CzM047vOo8wJqZqITIFTZdAUuO0cEQ1f2ab 0V6OQPo2tM25Xmyc37JrfAFSMe58sxltQWtfcJbpo7CXVsbfBPwwOJsy2IySSBH3c6 QigbnnBGH7ydSAX3eZUD5MbBmsyT0kXc2RtR+XXY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhang Qilong , Pankaj Gupta , Vishal Verma , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.9 107/117] ACPI: NFIT: Fix comparison to -ENXIO Date: Mon, 9 Nov 2020 13:55:33 +0100 Message-Id: <20201109125030.777882198@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125025.630721781@linuxfoundation.org> References: <20201109125025.630721781@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 31a07609f7a23..b7fd8e00b346b 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -1219,7 +1219,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