From patchwork Thu Jan 20 13:37:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 12718644 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20C82C433F5 for ; Thu, 20 Jan 2022 13:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SCixJW2kdHHnRvAcjYmdEONNbq1IMP9NtJNj71yG+XQ=; b=M9kcmF5RAkObdG 9pDt79Q/EYJcY4QTII/qraEL43X9QY38y+QYj0dMGzGEaq3ZN3ycZV3ShdD79Ra60MxSPYorTckDK Jc8SNvIl1TqS7mNZm4MiBMq7MNRe8DVrjrpSvXeQkgNX6RnJzHue1fKPHERk0FNLivpVXBjnuC1Bj mkKnT/sOgFXgudhK566hNQhtVmttOaqTfYKMpn8dubAnktyJZN0NMdrV//cj5jb2+2dRgTjngHN6A ujBRCp1iIQrM4S77aLTAAHEs7Qwi+YJOrWeqmau9hKadSlpwP46ZeymxZ/dTEZhcznNoHYccCn2iA fOomh768934+NGHv6YnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAXgb-00Bkre-1X; Thu, 20 Jan 2022 13:41:09 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAXgN-00Bkns-ST for linux-arm-kernel@lists.infradead.org; Thu, 20 Jan 2022 13:40:57 +0000 Received: by mail-wm1-x32d.google.com with SMTP id j5-20020a05600c1c0500b0034d2e956aadso13779602wms.4 for ; Thu, 20 Jan 2022 05:40:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RdQgp0z7jAUFjQOMn5ng6ONbiIyYZr0uioKFtudkYTE=; b=CXcvQdOP2rvNkOEtKNH6VOk1Hb/LXxy6JbE2SWTpZ3aD2q2j7cFd+7eIFMLkmipQOh 5pIUDEpIw9gAoAXu1aQ/yRMuMJicfWD1PXfKIgiOaY5Nen7p7SdOlMtz4eCjWWn8mvi0 GqwyVD2igMMtJEH68jVQcskMnZHuurvWzeEX0ErXRivmaeaGE07OAVISbhO2HsBnZt9u c7mzl+6S5U6R1ICKVSK0JDOucoHmU3U5LAk6HcxC/8AY7W9JVwSHTXWKfgL9t+klbOXV Z5vd/H/esO0PMnlbhGP+WPa9TBsdEkjuI6icUSk21pec3CwVAB39rax1d4iAe1F4fYtq +waw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RdQgp0z7jAUFjQOMn5ng6ONbiIyYZr0uioKFtudkYTE=; b=pmJUSPK+wE+o7bXD8TzbhpsjvRMx5JLT1DntVv9vgo1w9zqMsBpjqKWyBS834KHy69 iV6GxcvNvuO0reVKMhiQcX6J8tdS+vnF9Ao8soLb64lkQPz0rVGCyo/DGjdR5Zo3HSu2 HD0m1RH4IwsjRdiKXAKkohyblocAYzESZwGS4qOTVdDpzyIKrAJaEMiwj3U3pvjwsB7O 0RehTTK7pTOBe3R4sCiFMNCBEjZYDLmv4SdjMFRyWcU5KY2fIkVfjh4adqBLKlGrutfZ fCK/wgQGKr+iea3pgnvLpOcd9Hvsifa0/lq0jLMWQG12U9GHbcIrgGkUCJW6Oz0tFb7s hMew== X-Gm-Message-State: AOAM532UQUGI/VKOH74Km3f9ZYOUSkexIrvqiC8dvIdlKwG+9Hde6UT7 2Afai1oxAE6Nry0QOK6XmNMMx1VIUbxg9w== X-Google-Smtp-Source: ABdhPJyytsaDSqFfQ0C/HgqRe1W+9nmU1r7oXnvJcfC0c4d6ExyeZPjAlBres4pfxFO6/2HXNxZhCQ== X-Received: by 2002:adf:e84f:: with SMTP id d15mr33479132wrn.15.1642686054209; Thu, 20 Jan 2022 05:40:54 -0800 (PST) Received: from localhost.localdomain ([195.245.21.30]) by smtp.gmail.com with ESMTPSA id f10sm3094344wri.50.2022.01.20.05.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 05:40:53 -0800 (PST) From: Alexander Sverdlin To: linux-arm-kernel@lists.infradead.org Cc: Alexander Sverdlin , Hartley Sweeten , Russell King , Nikita Shubin , Arnd Bergmann , linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH] ep93xx: clock: Don't use plain integer as NULL pointer Date: Thu, 20 Jan 2022 14:37:39 +0100 Message-Id: <20220120133739.4170298-2-alexander.sverdlin@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220120133739.4170298-1-alexander.sverdlin@gmail.com> References: <20220120133739.4170298-1-alexander.sverdlin@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220120_054055_944207_5CA56DBE X-CRM114-Status: GOOD ( 13.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix sparse warning: arch/arm/mach-ep93xx/clock.c:210:35: sparse: sparse: Using plain integer as NULL pointer Reported-by: kernel test robot Link: https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/TLFJ6D7WGMDJSQ6XK7UZE4XR2PLRZJSV/ Signed-off-by: Alexander Sverdlin --- arch/arm/mach-ep93xx/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index 4aee14f18123..71c54da0c1e1 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c @@ -209,7 +209,7 @@ static int ep93xx_mux_determine_rate(struct clk_hw *hw, struct clk_rate_request *req) { unsigned long rate = req->rate; - struct clk *best_parent = 0; + struct clk *best_parent = NULL; unsigned long __parent_rate; unsigned long best_rate = 0, actual_rate, mclk_rate; unsigned long best_parent_rate;