Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3200161pxb; Mon, 9 Nov 2020 05:26:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyryicisaHqbrxBsZyFjLOFXEqXtp3KBU4BAUBpu4Ax74ZXcJ063WI0eGV4BHfzBrAHCnuA X-Received: by 2002:a17:907:2175:: with SMTP id rl21mr14867440ejb.59.1604928404269; Mon, 09 Nov 2020 05:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604928404; cv=none; d=google.com; s=arc-20160816; b=W+IHZi9CoCIAQZo40BQd6khOz4iAFQQYLq2+4CA3EejJz0DkZoklQBftBJZvXFs9xF xGj27K0DLVLT8yU0Foj5yCyXwNau4CtS45RsyuNLpSQCQ4cyooq0aIVnVg8v38Yz1Bjn +PJXhVRg/YChPhRHnyED66edPxxyVuhjodCCaXb4hfX5b+roqCzjViX5SGIegJTUFfwp Amzohx9VGPqRUaH6uDJXQdPRLrzqw6z3VEFgy5Xi/dZXbxN5LW7Uy88fYjcjfGaG98yP v9QyHY2w/+J2OII4eAg+eXc2C9OfzID9+bCNQp2al4REtNhGkEHt7ScbedW87uso17OH Kezw== 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=MYLbOsa95S1Iy4wciJRgfyxOg+4BTmZH25uUCn/UmzU=; b=K2oQD8fLfsGgUtBQWxV2r0EA23m/aTip8/iE0XuVtl20FJub02X2FqPgyHFZ/WwJhn 8zBsjFFe6Q/+OPc6ZgE8BeQ76PsQzugXPgirpmUgu0R2CNZ7l2ojzNhwkOOQjobtbMOb QcvP6T/7hIfsvOOtg0rCuHn0fQRWaewD0gLioTFkM/our3o9NK7/F5CvX/Vdh4SYal73 SdWmMXIysCJ3FmkNvqX9usL5sPYG1rcaKQN11gk4BHCw2/IHhW2lADKIRW6hAgNtVev+ M5jrHMSyJJVr+oWxjryfLMUq2egdkKQJy8swg1y7aZj8q8Z9ua3HtVMbSQXDJN54fwI1 u0ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zDV9OYNd; 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 bx23si7051867ejb.257.2020.11.09.05.26.21; Mon, 09 Nov 2020 05:26:44 -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=zDV9OYNd; 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 S1733119AbgKINWv (ORCPT + 99 others); Mon, 9 Nov 2020 08:22:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:49760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387816AbgKINVu (ORCPT ); Mon, 9 Nov 2020 08:21:50 -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 29C712076E; Mon, 9 Nov 2020 13:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604928109; bh=Y4pk0+NtOTsiLWykNqOh9dUwM35ghrHdAdWuyBg1o/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zDV9OYNdjFwx2mlZYOjVspJhA1Viy1vLihyRqYa6YaJh9KyuWvAIj8gUlZ7nHUNEH fwW2RCUKFW8mzJSQLX9tbAm4ttTwhciz6mpPRTT84RqYiheiyWAc1MiKQxskeC0mvN iLWsHtiPaNXNW56V4kAgB3Mp2iebJUqvCZfPYO5o= 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.9 100/133] ACPI: NFIT: Fix comparison to -ENXIO Date: Mon, 9 Nov 2020 13:56:02 +0100 Message-Id: <20201109125035.499160785@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125030.706496283@linuxfoundation.org> References: <20201109125030.706496283@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 26dd208a0d636..103ae7401f957 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -1564,7 +1564,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