Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp186584pxx; Wed, 28 Oct 2020 02:05:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE7QHj491cjS01JvWjnKOiJ1/Y6kjOpvf3xVL8xUEdBnkccDC7I/gX0sw8fOjqGPKlG5JF X-Received: by 2002:a05:6402:a45:: with SMTP id bt5mr6821894edb.101.1603875919261; Wed, 28 Oct 2020 02:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603875919; cv=none; d=google.com; s=arc-20160816; b=MZhTu5lo2AeAG7nafa6Q+yZYY2F9mTV0t9s2FtjEccTRXblPtN6mbipMYYjQoK5ztk dlNw+gWhNnZJD4x03954KY6X8MCPzDMmKqeRMuvtkTiS22U3LH0/eGhIdlumwu2cAgXt sGJ1AkdG5V/6fjY8m46HU03Au1bBq0TyyXSdqEEfbKwHeLSIJoXVR3Rz1Yf63fNmTE9l SNUZ7SQ4yVBA+wtN/G2JYnJMvhIh7/gbZe8MCi41q2sjm9WYgIx/o8xTVuk3DV6EmTfD 8ublBfY8FG8ASIi/cjE8UXEXo5/VVKecU8kTVVERNj8kiqj7xHX8rSVwufh0AkYOTJ2J IW9A== 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=tKyYpigCT7ti3z+gdySpiYh5+QgyxNfLmnTT3JZYQRU=; b=RoWm8csySFDlmxlJQApKqDuSFdOsbKGLRXmH72wrbLDsfU6rFH4RYC9LgojstJTI7K 1b2aZe86J1GzhP4sgrxC50srII+Cgj9JpM63XuYT+X7DXgFqkyEbQcpIWWvZoMx7tImU IXJKLPq30zaL/ahDqgGOvs9DJKh8sFJXEsoOgiu/RaDb+uueHwzELXnVo96cF6wPMXsP k2nQD+BgcZHwZj4KLRtnmXnWpLzPZTeY5kMujij93BxMZQiULTwX//pONR3m5I0DU/rk 33CU/UEQXr5XIng1elNmQLY97WnjvUWCzuJuURPSOBg2c4pBOU0vQTcmhsVaklrZXKMb Xj3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cWcgqP0r; 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 b29si2827715edn.354.2020.10.28.02.04.56; Wed, 28 Oct 2020 02:05:19 -0700 (PDT) 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=cWcgqP0r; 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 S1756966AbgJ0OP0 (ORCPT + 99 others); Tue, 27 Oct 2020 10:15:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:59608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755825AbgJ0OKs (ORCPT ); Tue, 27 Oct 2020 10:10:48 -0400 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 E62EE2072D; Tue, 27 Oct 2020 14:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807848; bh=vrrp1g/fcF4z5Qn14TN4QwzJcq2Iguk/mQAsVXevETw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cWcgqP0rg6Si1HEfHvLo5hVyq/H39AgXBbPvquXVczwhDuP/ETdNZy+8fdCn5bJkn uFxWC9D3+TDvad6pu1uXC+FhbhRE+nPBtdMjI6iBHPjqShi+pVCFkZWfKmP4o/EUau k+aeZfZU8XEWHOB7+HHuWeKotlhMu+7nNl3YK5EE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tom Rix , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.14 036/191] media: tc358743: initialize variable Date: Tue, 27 Oct 2020 14:48:11 +0100 Message-Id: <20201027134911.479583000@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134909.701581493@linuxfoundation.org> References: <20201027134909.701581493@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: Tom Rix [ Upstream commit 274cf92d5dff5c2fec1a518078542ffe70d07646 ] clang static analysis flags this error tc358743.c:1468:9: warning: Branch condition evaluates to a garbage value return handled ? IRQ_HANDLED : IRQ_NONE; ^~~~~~~ handled should be initialized to false. Fixes: d747b806abf4 ("[media] tc358743: add direct interrupt handling") Signed-off-by: Tom Rix Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/tc358743.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index c9647e24a4a3a..f74c4f6814ebb 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -1318,7 +1318,7 @@ static int tc358743_isr(struct v4l2_subdev *sd, u32 status, bool *handled) static irqreturn_t tc358743_irq_handler(int irq, void *dev_id) { struct tc358743_state *state = dev_id; - bool handled; + bool handled = false; tc358743_isr(&state->sd, 0, &handled); -- 2.25.1