Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7194687rwl; Mon, 9 Jan 2023 19:53:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXu2kXVE3I0k9BvTWhU/crAyGeKdIQUCFsR2kSDSVIa6cbjSd2azdWOX4ryPEPrPDFk/egwI X-Received: by 2002:a05:6402:4141:b0:469:ee22:d97a with SMTP id x1-20020a056402414100b00469ee22d97amr61086844eda.32.1673322806566; Mon, 09 Jan 2023 19:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673322806; cv=none; d=google.com; s=arc-20160816; b=uiymAHQx64+MLCRPrsQNxd5L94V2RaUci5Qc391ysDYHfLCZYVdO9ctH51O4UdzH2Y 8ZNyYdGC8rTTLdd/ZUEHFitNAsMTGQmOu6bW4Hfg1fxTcCaZxuxYKcnQ2sl6WJHuB/Yq oZj2o1eyfMECVwMfed7qC5dKuxAPT5cufnelO8vOyb8Gjuhb7UP8evMOzVRIlp6UDvNB HkkGFCcuH9BzbFdziHzgpVkE2vXwXVL4Y4GFwCHl+bURwBflGrcMITKtjOX6mDFLc2aN dGz3ptcEiiofxC+1PMG8pr2Gn6d0Wje9X+bNapvl/94Lje47XP0jCwM305UF5p+LJKSd y2KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=uv/WBNw5113cc8E4woYRu/RQdfYiytsFQZZPKQSptSY=; b=0PENDrRHyvvgRnlR/UEbmg2fsuxdrOvrVSQvcIgRWPvjBZ2ejLkusnFNs8b2EXod2q NPzEfgD6eeovOVBQgBH33Npzg05GK5SnNBqx6VgNJakLjrjjsXpeOPcMTA1HtTgfZe6S qHcM9RfBqJNQx1BBaCb5MfHRUYrkaRyMhZaU5elb2A5UrLb/ddPdcpSrjHQVS4qjCjB/ CR1HrgzC4h5MrX8648HWUmr/3Lt4eeZcyj0cPhhMiMSO0PEogOW7zl8nYSsWpczfLxfx EWnWTe84vfj5x2NH0mTc8M2Hs45owoNjcfKC0a/Bb9LelTm1VjxJ2JiVAnxCaH+VxJ4I jdVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tqIBQAzK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb7-20020a0564020d0700b0048793b0993asi12772786edb.390.2023.01.09.19.53.14; Mon, 09 Jan 2023 19:53:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tqIBQAzK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235698AbjAJDNA (ORCPT + 53 others); Mon, 9 Jan 2023 22:13:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235593AbjAJDMz (ORCPT ); Mon, 9 Jan 2023 22:12:55 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D632313F30 for ; Mon, 9 Jan 2023 19:12:53 -0800 (PST) X-UUID: 26ac3968085c4fddabace5faf92e608a-20230110 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=uv/WBNw5113cc8E4woYRu/RQdfYiytsFQZZPKQSptSY=; b=tqIBQAzKHG1fBpdZP7XlHB0sw++dhwtEd75msRFVqB/JFAD3VtY+rOXEuVCMpnh9o5X6ec3XEFnHh+qSPxsKVK+dSElBP/Wc0O6lQW5ILHJs5FAQ37B8BOP4N+QMFLT16KFIDihXWBC49HIzFQeszoMxvkYK5EulSA6R3QMKCQY=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:d5d75d67-1009-47e2-836e-095aab1db909,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.17,REQID:d5d75d67-1009-47e2-836e-095aab1db909,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:543e81c,CLOUDID:3a7d2c54-dd49-462e-a4be-2143a3ddc739,B ulkID:2301101112481SFXNS1G,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-BVR: 0,NGT X-UUID: 26ac3968085c4fddabace5faf92e608a-20230110 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1311469585; Tue, 10 Jan 2023 11:12:45 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 10 Jan 2023 11:12:44 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 10 Jan 2023 11:12:44 +0800 From: Miles Chen To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger CC: , Miles Chen , , , Subject: [PATCH] firmware: meson_sm: stop using 0 as NULL pointer Date: Tue, 10 Jan 2023 11:12:42 +0800 Message-ID: <20230110031242.4917-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use NULL for NULL pointer to fix the following sparse warning: drivers/firmware/meson/meson_sm.c:85:24: sparse: warning: Using plain integer as NULL pointer Signed-off-by: Miles Chen --- drivers/firmware/meson/meson_sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c index 77aa5c6398aa..3f5ff9ed668e 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -82,7 +82,7 @@ static void __iomem *meson_sm_map_shmem(u32 cmd_shmem, unsigned int size) sm_phy_base = __meson_sm_call(cmd_shmem, 0, 0, 0, 0, 0); if (!sm_phy_base) - return 0; + return NULL; return ioremap_cache(sm_phy_base, size); } -- 2.18.0