From patchwork Thu Dec 9 20:34:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 12695515 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 B9828C433F5 for ; Thu, 9 Dec 2021 20:36:43 +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: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:In-Reply-To:References: List-Owner; bh=G5+C3bDY0vfJeCHwUdhBt3P66Ep2+HKQg8J+ptJEKQg=; b=fHb97WvlOXB+Sj vhhN24s33zqAYmLcTfdb+r2RHoSAjoWjaLU3gMttD2HAXXGdKMtSaYyWnzBAaNu6YBQe1isJEzwD7 4P1rFXum+Yz13uOLyJseH/h5qIQmh8vdeKLKhbIflgdTRzSvp3syg1LwN+lR9M/a0T70CFP7jMHJf EsbLCNbLXUeoTtrSjdytN/KgO9vbZoRXBDEcmgg8sbK81zvDZMubSKf/8//ZbkhZBbJkUu3OlGXGq QL8pHVBhnPdQSM0py7cWv6isKZ9cW50rofZlUq9vk2WlkLlNUxAqHLtPfin9F/vkoUZKZq6cNF12c R6PkyEemZ6aLck8yIjKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvQ8Z-00HUgV-OU; Thu, 09 Dec 2021 20:35:31 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvQ8V-00HUfM-U0 for linux-arm-kernel@lists.infradead.org; Thu, 09 Dec 2021 20:35:29 +0000 Received: by mail-wr1-x436.google.com with SMTP id a9so11736994wrr.8 for ; Thu, 09 Dec 2021 12:35:26 -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:mime-version :content-transfer-encoding; bh=FwcKS2UKLAvrcYdIiK6cdE3C3+gkf0RAZDU5sfPJejQ=; b=D3ys7W8YHQ8ff73vPJeuZIkwQHOATBjZjS1jgt20S6un0v0RaJsBnhWs1hO/9UQv0O UUAhH5QMMLcsM8a57z66QAL6nr/3gWcHOKsi/L30BOU96aWM/VR5o4BrjGRfA6hrN5yD SYiyvYTmvhtvPuzQaCZb5SdP+Hc+5gLOJKmMps7hIDw7tcjhIxsHrGY9lISD8F6Y1uGI lRxzDddbZLMfTmPxQ9Wwfctbdj4KYUMZ9rRSTD4ob9+/svat6HLwtNNtT8M8gmFPeYzq 5x4mAmf6APvWBV9CYXBgv/SDDweMuZQLTumP1Xkpg4vWMXfclETJUZ7gnuxCWTa9vnm4 eD9Q== 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:mime-version :content-transfer-encoding; bh=FwcKS2UKLAvrcYdIiK6cdE3C3+gkf0RAZDU5sfPJejQ=; b=hpM2GYtPIkkpiB5X0zYKzBpZnUnkUX4kV8uJMUF8xvhpFIRPbekgBRviBixM0QkWYS DmY6RrLvIVw7t29W0TngJJVviTb1I6SwsBoVwIvD1uTLbcfMGaNNpqwjoxTdQEfUa5X/ jeyFtlo0dhQZHgq77r1Ss/JYjexmwtafIPW+xGJvi9ChckwmSDs/ulrksfcTEyN8UHzH LfvnG42waEUvVhRcbEVkiLqMoc8Gg/kiw1VWf1VTz8Blm1GB+XL1/7HbXX4EYbp5cF+Q rRO0AZKs5VAnSVv2rOT+7YWCJ2l7j8gb1ricZtA7/DXlIpIeHBp+7sUS/cWmThwr7odI 4OYA== X-Gm-Message-State: AOAM530hcNQzUY6aBRU4RXMdR3H4w7uR0iahwHD2GeRkx7ii9Mfecu30 nLbyGXlmiyzcgZit8nLtlyFaeHc/cO0ijg== X-Google-Smtp-Source: ABdhPJzwdRdl5coG2LAl5Ilrn9X/+X+ZSGHghqb/s3JcwDwqstfm7yigA3NadoQUcDugKHlowvf5Lw== X-Received: by 2002:adf:f0c5:: with SMTP id x5mr8744354wro.484.1639082125664; Thu, 09 Dec 2021 12:35:25 -0800 (PST) Received: from giga1.localdomain ([195.245.21.30]) by smtp.gmail.com with ESMTPSA id e12sm990684wrq.20.2021.12.09.12.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 12:35:25 -0800 (PST) From: Alexander Sverdlin To: linux-arm-kernel@lists.infradead.org Cc: Alexander Sverdlin , Nikita Shubin , Hartley Sweeten , Russell King , linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH] ep93xx: clock: Fix "plain integer as NULL pointer" warning Date: Thu, 9 Dec 2021 21:34:29 +0100 Message-Id: <20211209203429.140751-1-alexander.sverdlin@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211209_123528_000552_A4A95602 X-CRM114-Status: GOOD ( 11.92 ) 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 From: Alexander Sverdlin Fix sparse warning (use "NULL" where appropriate). Link: https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/WU46Y7J42IOXN3BCLEEA2U5SHD2E2M2M/ Reported-by: kernel test robot 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 cc75087134d3..3dfeef00ac5b 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c @@ -207,7 +207,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;