Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9173496pxu; Mon, 28 Dec 2020 08:24:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxP76Sd5ZLqtpRsJdz4562KDH6rIxgpG5VprBdGdLpt2U2pmhTgtzr/GB92fVpCEc0qD8TX X-Received: by 2002:a50:ab51:: with SMTP id t17mr42830565edc.89.1609172644268; Mon, 28 Dec 2020 08:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609172644; cv=none; d=google.com; s=arc-20160816; b=zpeJAR6AJTs4yyF4q0vP/d2t4OzBxFMszIN++pUYoNQLX2tovHjHJBWjwwdEckjnxb 1kLyMMnsGSGvUuZoUx6isEtqNiz+bcXXp0pzp+izT+PT+zxLj6nE/y34S7MJovCIyf0g vz+twRjBHkNv+rPMDiLYRD5JpwQjleyJRak9gQnj13VidLnumr2LRvZ8BhhI2pZ0QYzu NUqPZOqJo4f7cobaRz5RsrArBZ3JdlMmOwwOuwRPeh5A5krMYWAL/6ZwQTrWa7wLkblT 5R7J7G3jyNAscVucwXGp1wxLMe6ORknqblqkdCvWrXhT5uM7TS+EOPUp/hAi8RP+e15X 0Ycg== 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=7O89fv9A8qnzid7js8Nx7NZM06gfwWES6TbidGt1LII=; b=t2TfS2WPOJZXhoZ6soFXnpOitIOIAq/TavmojLXxtJy1oyIkhuLtjNdx8U/EXnXMRQ VvyN4zYRFpfAwoa3JqDBnt5tZb8Ev4jNlS5uuchh7JlmV156AYJb5lOuDRCctiugSXQK r1ZJBm79x8RD+9JRRid8XeO7vmwfJKXZvmknPyMZV//FVTD18aFBILktwWU2pPlpFEMx 8Lj5wHU/GiZi55AhnNE+PVmeTgW8uAXKioGTf5vShgMcpYAMPHRIXw42WSv0AO17jYkU 89Fm1E68yqmBtnQc3Q5i61QkuF9PY1oJ2P/NXE3mXvIKb+a72zfKglbsg5Pzq4dQnvpC uXhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wFgodGbY; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si20933545edk.554.2020.12.28.08.23.40; Mon, 28 Dec 2020 08:24:04 -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=@linuxfoundation.org header.s=korg header.b=wFgodGbY; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732173AbgL1NNB (ORCPT + 99 others); Mon, 28 Dec 2020 08:13:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:41018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731651AbgL1NNA (ORCPT ); Mon, 28 Dec 2020 08:13:00 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0C6D206ED; Mon, 28 Dec 2020 13:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161140; bh=xFQwyMM1a2ppGuFFNpeikYRsQv4dKy+MhyDbjKUq+j0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wFgodGbY62J/6e9s+F6ttR4y6z6fVjpcQvUBrWY4F3Fz57Z32I5B/CqfAdBVpYPYi 7JCfMLbH+F2vhsbXzVZdzdBC1vtN19IOmnVbELyTGJ3F/tzRvrCDgD71m16jFnUcCe YqtKtVUR2zXKiMahjfgqap8gwFbwmGzUAlfeiQEI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.14 115/242] media: max2175: fix max2175_set_csm_mode() error code Date: Mon, 28 Dec 2020 13:48:40 +0100 Message-Id: <20201228124910.354949980@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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: Dan Carpenter [ Upstream commit 9b1b0cb0636166187478ef68d5b95f5caea062ec ] This is supposed to return negative error codes but the type is bool so it returns true instead. Fixes: b47b79d8a231 ("[media] media: i2c: max2175: Add MAX2175 support") Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/max2175.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/max2175.c b/drivers/media/i2c/max2175.c index bf0e821a2b933..5cd09501ca7df 100644 --- a/drivers/media/i2c/max2175.c +++ b/drivers/media/i2c/max2175.c @@ -511,7 +511,7 @@ static void max2175_set_bbfilter(struct max2175 *ctx) } } -static bool max2175_set_csm_mode(struct max2175 *ctx, +static int max2175_set_csm_mode(struct max2175 *ctx, enum max2175_csm_mode new_mode) { int ret = max2175_poll_csm_ready(ctx); -- 2.27.0