Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp609824pxx; Wed, 28 Oct 2020 12:19:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBY1Hy93Eybeia2jGEYemKJnb/+QSfzF2+8GnbKqTAWWRWFNnFfl9WKXNExGTBXcXA+3/u X-Received: by 2002:a17:906:ce5a:: with SMTP id se26mr633410ejb.106.1603912787222; Wed, 28 Oct 2020 12:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603912787; cv=none; d=google.com; s=arc-20160816; b=JxSjRYE8y8klyrCS2b2/nh07KYhUCkHx07aFbTbM0fuqhNVADJkNe4389kmwrBrsiu rC4KhACfsntygcgkSTQUnN5FpyWrUh21+YqpwpH9biG7P3kdny7pxDYWaemgEQCLGMup RrTLJonblIJxc+/VP2D3sUfiuokXw6unyvgxqwA2V48gaGLzIRK0OU3BuHxWiQdVniQI o2A2B7RelgjWISViFzcAKM2V1sMXv36b92Y7mL22dKgtsNlL4feZiyr8AZvNCorJMrev mzYE16qOe4qW1ZvNIJSDw4NVD3nSt4zER0VbZ8kZxfw+THZVH8BrIc1sVOecD5QFe+3d Tg6g== 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=IEnfT98wgIfpLFk40YOnU464PuEHKConLqcGPRacWXE=; b=kpb3fMy1440lEz8rG5Df3VRg1LvhnchYnNFriziNxsfvyUL9CJ9f27mJ/VTq1TuMzt VXvqQsDm3TDobpgYR9v1xKQ4MgurEACYyYUf3yu1NzJwcJHAh0kzajNU3CwFk8RWBae5 2ZrTZ2joJliIZDzfP3sFS1ZCBhxak3wd1wnKO7jdDOSPAOiNpAobPMvrFPV7p3I9z6A3 WQhLk7Gbet2JSSnQH4nOvaVZUJfS12zeLLhmgqL+K2+Gq6ICqhLJdc9UKS/RqQVo3UGk nXNtCsOiy9yc9B+hEVo/Diz89VyTrzjBtfop0Tu8YFjIFc3u+EfOEWHm7XJbN1h9dnlt XeuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="XzKXxl6/"; 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 p9si37501edm.38.2020.10.28.12.19.24; Wed, 28 Oct 2020 12:19:47 -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="XzKXxl6/"; 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 S1827228AbgJ0SWW (ORCPT + 99 others); Tue, 27 Oct 2020 14:22:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:50426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411821AbgJ0OCd (ORCPT ); Tue, 27 Oct 2020 10:02:33 -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 8C37A221F8; Tue, 27 Oct 2020 14:02:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807353; bh=dAJMI8Hy7BiyNF2k4KdevLKqTsUTOgFjIgLg4+ZK72U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XzKXxl6/iKFZ7VfvBU3+2acJmwl6xBbr0cHi+6yg5UZVbiDLNM2hdSrFphupz3XlX fJTlcFdPVjkT0Xb7Kw9/zNrYXqG+MQm2vdl8OoC8nbty2o7RmnyyYPI/F43wz0dm2U KGzACflf9XqDmECkdqJUwZ+Gji5GdknLvu803ylI= 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.9 021/139] media: tc358743: initialize variable Date: Tue, 27 Oct 2020 14:48:35 +0100 Message-Id: <20201027134903.140092895@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134902.130312227@linuxfoundation.org> References: <20201027134902.130312227@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 7ebcb9473956e..3e47b432d0f4e 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -1321,7 +1321,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