Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3202819pxb; Mon, 9 Nov 2020 05:30:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVLPfPUav/EYujoWQPDFDAG90f8LLTHEUqOrXp/eJq80Xff9SVeX4yMb/mwgRjXJN94cYu X-Received: by 2002:a50:f190:: with SMTP id x16mr14891153edl.292.1604928642563; Mon, 09 Nov 2020 05:30:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604928642; cv=none; d=google.com; s=arc-20160816; b=w3HFKBgzImiXRJkRTms0ZFM85iEbwE6TBb8qLPPbQ2vqv7v0kKe8GtAzfqnxtGid4K OwxZujuG6Czr7cLdvImeFxGl8y765RYHo7DC/QB5irnztMdvvzfvh/uC42uHOv/xqHUi vftRYLCEomqRK5+YgJB+lpZs1B3Y9PcF/FogWpY6xMeUQ3f4b5/DSJ28u1XlQy11a6mM S9CL2tVwdFhpznxARSjZpsGutBanYvUX8zBPgGOncTYy/sC95ujTRDkLujNgyYT/fthm xrIEkiWkQKX2c89iExjx3nwhmVCxgGTB6XYozqNTmQqPEJkpCIB3ausz8lYUnxPdjPuh e8Ow== 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=Ww27L5wstDO6v7rCR25h3cm0Dwtq6G2aDWkP8TaynKw=; b=SmLhUYli+6N/MW12IxConxcrXP2pk7ZNgVM9+BZeXppOd8k/EsfB1iKJanfecUxH9C 9HfaZ7/NafFVgvQovu3Ep8Lxdql5gPycWSVjRI5+end+rSIpAHBUpLb8atrbTL13EOpP 1lqhxTrxLodscWeYEGUgsinJqumJP7MZiMoLgR9wZN+m7gjz3vvyI3CJML75ODEIQd6g M7CJKqDaLslxkOcaS5+q+n6HPONeryUcjoVzzDufp+7PQ0vgi44j9cFBd8nLPQnklAE0 NQWc5mkuXk1FgpSmdauct90GNdjQcLxzGC0yfwe5fyERib8Zn0CgGU8QmTp2mYTXZnv6 atqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="uqs8mu/F"; 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 c6si6886001ejr.584.2020.11.09.05.30.18; Mon, 09 Nov 2020 05:30:42 -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="uqs8mu/F"; 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 S1732261AbgKINOM (ORCPT + 99 others); Mon, 9 Nov 2020 08:14:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:40308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733058AbgKINOI (ORCPT ); Mon, 9 Nov 2020 08:14:08 -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 D787B20663; Mon, 9 Nov 2020 13:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604927647; bh=2EPBhjUcKwhQAiBveff2wv2l0sDCS99DGzUfWWYOiLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uqs8mu/FvXS8lb5vDjgaEwQRSlatdwdFLlI61xqy7LCU/2+4h+p/X9jjwapjAwmbJ ahaFoI5Yypetv9/kopTVeYktYa0XjulyB86WNzdtspyzvuF8lxhmifWJAPKsBES/nX d0iN7vsqQZOxsj8vIhs7zTmp6Ooc6Hb3TIyU3qe0= 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 5.4 58/85] ACPI: NFIT: Fix comparison to -ENXIO Date: Mon, 9 Nov 2020 13:55:55 +0100 Message-Id: <20201109125025.356474804@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125022.614792961@linuxfoundation.org> References: <20201109125022.614792961@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 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