Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3272490pxb; Tue, 12 Jan 2021 10:21:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNLOb1yJf6KyIPIkLbu+rk4ZMl+dKl74QC9WTZ7p0dwmw94egskGv+dwcCLGXGcRt0DvSc X-Received: by 2002:aa7:c84c:: with SMTP id g12mr321838edt.193.1610475716995; Tue, 12 Jan 2021 10:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610475716; cv=none; d=google.com; s=arc-20160816; b=u1aBD84MKJ/ZP1YYgwl25cyvjZCsoBeQXOwXuLwbcbVffvfp4ZomcA1HYaOmogND8w hpvzK+3V4q/3jPqqm0YQFTg7Y0uj170A7xNzseewDdB5p35EcJexFNWlpqDqXRr0Uk/4 uHrj4rQ+AunoV8qQ9A8UlL2fsJcC6hJ8Jnp7lThiwHVBRfopJB4GdH61nCKtQT0bhrP+ u/mJMBlXI0ze2CdADdavL4E3rYnThseX3iTwmdeM7Ks3dEzhDDRZGLP+yF0OoKfQtXrh bR/ZyEUtIdmwydArUeH5QvVpVBW89/ImUt8ECUt8qFqhjYJjvYmH4b6T3xnBidcpHyxt ktUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6/4/dr7fn+zRTbNcUowmMs8Ol/J2eKhumjr3A4Q7PFg=; b=SAVohnlzEiJgppM+O2nT3FFihXpd0C487+cphINat1BEGN+GY4gJhlbW7nFMxKQAQj m4OJnr1PoVhT6kyqnrP/weIk6SfOVLSfwsuEbVuyU+KTW5eC87Gs4MCOLnYYHeh9SDPe xi+UUchg57r1ovtXuTTO328r8ohTawhuY7VTXe+nDhZEWpcfpWCC8sVTsZCU7PGVeIvn m9zu96024GlEJjSWiWnTFZtHUd5PFgjQuoyuDiMZjomIMWAFANuRMPTQZaNk8SGKd8XX WNOiSKm6+4X+IXSkGjhUkQgLAkr9eDO6K+PRg6pWNpfqnaib1ThzVj8yMvU0OYfILNZU FElQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LynGEmqa; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du19si312965ejc.206.2021.01.12.10.21.32; Tue, 12 Jan 2021 10:21:56 -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=@gmail.com header.s=20161025 header.b=LynGEmqa; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391944AbhALSUd (ORCPT + 99 others); Tue, 12 Jan 2021 13:20:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391608AbhALSUc (ORCPT ); Tue, 12 Jan 2021 13:20:32 -0500 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A361C061575 for ; Tue, 12 Jan 2021 10:19:52 -0800 (PST) Received: by mail-qk1-x72f.google.com with SMTP id 22so2717133qkf.9 for ; Tue, 12 Jan 2021 10:19:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6/4/dr7fn+zRTbNcUowmMs8Ol/J2eKhumjr3A4Q7PFg=; b=LynGEmqaTLG2T0txzoExer0ZVvjQ7ErcUJn8AJ46RHf/x34wtEtL7n7G5pZi3WcIkm 2liRj0IBu3R/Tn5gyMpYhSPxmjvwY6kit3j+p+XB9kjWHJBvy87NuxGprIcmz7T4o+Pa ja9De+tLhO5ZymbHezPq6orUehBQJUjfP6yIJac6hT9UTC18Ywi00zftsU9YWd/crE+o BsH3yQICgUmTf3AHw/mNFffhDx8hkP7Mlux1H5J1fwO5BrBh/5oMSETzzv1jeDEN1Lpi w5gViEURf6IPAXIyznPwQsFVgMI7nur9g1x8FOe4lj8E8w59WZ3DCMqDSgfo4l5ea68X 86Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6/4/dr7fn+zRTbNcUowmMs8Ol/J2eKhumjr3A4Q7PFg=; b=bkZcqrv+47FIzj4yk8H+Uhfb5/+eZQIM9FgfjPdIt4I7/JSfaThnDvbpbju0mxwiGj PzSQCkRjK/czKFOw87DQ798N2qI9KnkZeS1pA1EZb1Sqv1gL8r3pl2QlZX0hDXmqBovp As2XG3YsN8INvYIg57cW6t5OkqQF+uy2MXgq9FA1GVNOAVCtcUhFmbtu8KksMyA25Qgy XhAM4WzVKFOI7qSYKF0nFivbunMhnKNUA6e/hnPswusKYKgzcrDDl0mJwpGJO3UAPRjn 7BYHuSSUxQB17uv7bdAiuxq/AlAQ+zprXbfWevpy2QFu0iRb7RIClgHEuqCAnLQ6kXKx VroA== X-Gm-Message-State: AOAM533+X8mlKVCjtUyvYmH9AKhIlmeMGDse6ACs8Za9Ku+whLZIZ6cv gN1uFTppToxlMAIFUUhRP/o= X-Received: by 2002:a37:4f11:: with SMTP id d17mr615113qkb.53.1610475591791; Tue, 12 Jan 2021 10:19:51 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id q70sm1736569qka.107.2021.01.12.10.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 10:19:51 -0800 (PST) Date: Tue, 12 Jan 2021 11:19:49 -0700 From: Nathan Chancellor To: Shengjiu Wang Cc: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: imx-hdmi: Fix warning of the uninitialized variable ret Message-ID: <20210112181949.GA3241630@ubuntu-m3-large-x86> References: <1608115464-18710-1-git-send-email-shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1608115464-18710-1-git-send-email-shengjiu.wang@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 16, 2020 at 06:44:24PM +0800, Shengjiu Wang wrote: > From: shengjiu wang > > When condition ((hdmi_out && hdmi_in) || (!hdmi_out && !hdmi_in)) > is true, then goto fail, the uninitialized variable ret will be > returned. > > Signed-off-by: shengjiu wang > Reported-by: kernel test robot > --- > sound/soc/fsl/imx-hdmi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c > index 2c2a76a71940..ede4a9ad1054 100644 > --- a/sound/soc/fsl/imx-hdmi.c > +++ b/sound/soc/fsl/imx-hdmi.c > @@ -164,6 +164,7 @@ static int imx_hdmi_probe(struct platform_device *pdev) > > if ((hdmi_out && hdmi_in) || (!hdmi_out && !hdmi_in)) { > dev_err(&pdev->dev, "Invalid HDMI DAI link\n"); > + ret = -EINVAL; > goto fail; > } > > -- > 2.17.1 > I still see a warning in v5.11-rc3 that is fixed by this patch, is it not going in this release cycle? It is a regression fix, seems like it should. Cheers, Nathan