Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp509993pxx; Wed, 28 Oct 2020 09:57:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylIJNK8Ha7wykSEx2oCpUi4YEWbC1BlLH+p74H+cDKtPsXjMjanCw5eTNB49vnRo2j2PRP X-Received: by 2002:a17:906:7c4b:: with SMTP id g11mr8761949ejp.469.1603904277537; Wed, 28 Oct 2020 09:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603904277; cv=none; d=google.com; s=arc-20160816; b=Se4DoguvcNldXgLeRFm42siYnub4g+e3pDXijMI9S+0e4b1Qwqd5G4JWP1Ie9E8+HD yZ1kETR05khJbxHyTaurzN7iR6BPcsXR5jQmICVw3x2lc5E676jvbzO5iDlAKvGZcAuy OUKyBxYrn6qYsaJyjPsyyyNeaCGIkRUJGUF7MenisgWHhcbnvcs5eQ9mwNfhpeZfEGOI Pfm18A1Vp1PCyElKM/luWGBPwEBAs1uAqAO/ZVT0AJ8NIvd7BsZ93wUSrRqbB+TOTOgI ZwPMlF70sCrr0cAIelL6wD7yxwN25BZ8H5M79TGuzjNEK4KzbV3m7dzKl6gd3f0jYoQ2 h2Tg== 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=UW4Q6JwD3Tk8VGYRWtq206uxe2Qopw3SGnksNycmJ4o=; b=ctnRWg8of+/M7ZYkmUyCzesJI+DvmKllPpep1xCgX4LEknHAgZKyh9/DjQ2jabtCQw JBvQXQjJJKZNdCcBS0d2mKuTatKUctvF1OwtqMRrHGNa2oVSLsFqxHkb1nIdmBFwaaau fbqZTTLFFUafJ2qrzy7qI1LZmllO4a1jChhzg+Ag3ztZZt9Mo7kQE8UZSbLaCmacRqmP LuBESYQo1MMXhT5ZfkBnnMar8V0uRZ1o3/iErWI22fc0DePxIpWI4420WBiwN0l/H21j v3QEU4dEROqVF7qL4lniL/SBCVj4kj98zlwsOL6+yR0RLSN9sKS0B3y57A/tAXmCgsoa MZ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tGql9/YB"; 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 w11si3696538ejq.533.2020.10.28.09.57.34; Wed, 28 Oct 2020 09:57:57 -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="tGql9/YB"; 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 S1819074AbgJ0R1L (ORCPT + 99 others); Tue, 27 Oct 2020 13:27:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:54210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2900517AbgJ0Oxv (ORCPT ); Tue, 27 Oct 2020 10:53:51 -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 909E122202; Tue, 27 Oct 2020 14:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810431; bh=V3aP/bAmjKvZth6bzJQoWBRnwTTaQ6YPbPgawguOf2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tGql9/YB39xRflE70xIxaFb0gmAh4onL86eV00ZgHjTEQHBFv2dQWrvN+wQTtLhXs agVNi7VZ4h2lrEL1WSwuQw2SRBgNsqjvJmHG6vKeIlIwlGJDbYHu5jX3FNG89TR71n RIZTVbhqi2kt74PJVZrqrdSmCplMrfxW7m3OULmI= 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 5.8 136/633] media: tc358743: initialize variable Date: Tue, 27 Oct 2020 14:47:59 +0100 Message-Id: <20201027135529.072378181@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 dbbab75f135ec..211caade9f998 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -1461,7 +1461,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