Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3302566pxf; Sun, 28 Mar 2021 20:50:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu7Vbu0ZSuUAWvg09Hlkx/gQqIzIgkFGjFe2fin5orNMw9KHKLG546HS1qcb05Pcxr5qQP X-Received: by 2002:a17:907:1c1e:: with SMTP id nc30mr26989610ejc.34.1616989824238; Sun, 28 Mar 2021 20:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616989824; cv=none; d=google.com; s=arc-20160816; b=0WTumG6bIO+GpaJFcC6G4sYMIIwxx8od25bRUePfxAwwkNqMyZkuVy5nmK0KS0015f Yzn1aTQGoDsivwK7eB8z2g3pK9cxCqRyk6uqorRWx5Zs+mW6hG/fyTE7Od4/dLW9l3Lk W7oTmkAmHLIWek+IH5ZDa6WaPTeP8+wRQNLCb6YYe3EIDxCrozTHIasBBOVqeDk1gesN mQhUQDilKk4LNo5ZDexuPtsO9VokgPwkQi3ET9fR7L1SmCKglpk9Nc9MOno/yt2boKz9 DSr7tFUqtT/q/X8mXJQUD1ATS7trfvYaBwfNKR4tvqQMqwex3jCSyzD1StyFt/DdzhML QnQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from; bh=103M9tDUl4TRzK5U7a9Ztrqy0oopdIhO4qI8w9wSynQ=; b=KQdabIw/u6VW57dNkcFI1nnwM9S87GLFrr7K1nfAZuxnwjpalgvkcPTaomOV8vDCv1 Lo04nYoVosq88pf8wYsJDnLbSBPctILuZ/C5QiIcqdUgJz3Owh2XgNz2VVI5scPhc0Uh DakQyg7rcZidY7oC6wTsgVY4x3whbiivgcvFGLddOusrHZGpQ62ojALShNi0tAhxCDFo neSRA/Aer6l/XrM+lIkFm/lEk6A1ai8iWwutrDUNB2veFHiO81wjquMqbXyH4t119Qq6 D1Lr0cDv9xpsgkyn7UYpr6JbCKIs9wVSMF2CWHQOnqHBSONa/keeThA+pnRddLiW08zH TjXg== ARC-Authentication-Results: i=1; mx.google.com; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si11701205ejy.55.2021.03.28.20.50.01; Sun, 28 Mar 2021 20:50:24 -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; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230247AbhC2DtE (ORCPT + 99 others); Sun, 28 Mar 2021 23:49:04 -0400 Received: from inva020.nxp.com ([92.121.34.13]:36544 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbhC2DtB (ORCPT ); Sun, 28 Mar 2021 23:49:01 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D2CD91A0E0D; Mon, 29 Mar 2021 05:49:00 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 70DEE1A0C82; Mon, 29 Mar 2021 05:48:56 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8B5A140291; Mon, 29 Mar 2021 05:48:50 +0200 (CEST) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, lgirdwood@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: [PATCH] ASoC: fsl_rpmsg: initialise pointers to NULL Date: Mon, 29 Mar 2021 11:34:28 +0800 Message-Id: <1616988868-971-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the following sparse warnings: sound/soc/fsl/fsl_rpmsg.c:45:45: sparse: sparse: Using plain integer as NULL pointer sound/soc/fsl/fsl_rpmsg.c:45:56: sparse: sparse: Using plain integer as NULL pointer Fixes: b73d9e6225e8 ("ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg") Signed-off-by: Shengjiu Wang Reported-by: kernel test robot --- sound/soc/fsl/fsl_rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_rpmsg.c b/sound/soc/fsl/fsl_rpmsg.c index 2d09d8850e2c..ea5c973e2e84 100644 --- a/sound/soc/fsl/fsl_rpmsg.c +++ b/sound/soc/fsl/fsl_rpmsg.c @@ -42,7 +42,7 @@ static int fsl_rpmsg_hw_params(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { struct fsl_rpmsg *rpmsg = snd_soc_dai_get_drvdata(dai); - struct clk *p = rpmsg->mclk, *pll = 0, *npll = 0; + struct clk *p = rpmsg->mclk, *pll = NULL, *npll = NULL; u64 rate = params_rate(params); int ret = 0; -- 2.17.1