Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp28601pxf; Tue, 9 Mar 2021 22:44:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVYak+VcL72RUZ0ySc09E/986Kqocws2P3V76KtGZDAlTSQ76GbKrCSt6HXI315yi5hN+8 X-Received: by 2002:aa7:db01:: with SMTP id t1mr1529135eds.77.1615358673056; Tue, 09 Mar 2021 22:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615358673; cv=none; d=google.com; s=arc-20160816; b=vnyUVWlTZlRSs0MtumBFnf5yGus0FCo+bCxPsnV/1wus3efxpUgI6q+U+gsMengBx2 i/pc2MYzx4SrqeypHr2lDqYc+kVI9GKcwy04YIKns9KuYJ3DX+ci0ScqC8L68NdDOsav 8R6awTV2Fe6SkRnyBpbewRF4KNxn/LR0KEvqZzXfu/E2qCkf5NyNiHu0Q5SJ0ByaXfeo 3LmwWOdC46wr7uYT7+sA+4ogyyKlYD16EVab3f+CT2vfo7GgtSBSzk+uMQhuD3RNATpk Eezkf1fSYmprHO4Mel3egnkgHxjw40Nx0t3Xv3krBNh+AGRB6qM8WrYfVJDo3gid0C72 fLYg== 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:cc:to:from; bh=4sOQEDOQILJuTMJfEGMS4EHrCEg08DRFaUfDFC1Pxd8=; b=tdTjEmZ5ua295CRIGTMcWR6MJYS+USErkfCC7cRvQ0P4fa+95Q++C+Rl5/Fyfh3yGA djs5PL89AQr6lSu8tiSt9wuH2JUKNLLkPYpIxShV+tLC6RE1yWqq9KdoGA4Q40xxyT7C ClsPme6ZRPsavd0zl2MROm2ptgihWcTE5nL9Xx9V18cYKrG6si6By3XExs6L6H+39ls4 2Kke2W5uD44TvGUJtoxd8+zdXrfotwkD6d2H4ofBQPOr6zLTbiWABMffFCjTwuOQu4Jd 7dEpx1KrZGIaT1vngo0YCNp6Tnl0kt4GN3OadGbFQQhBlsVFQJYEc3A3JS/oWy6bsX+/ aImw== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df23si11015448edb.38.2021.03.09.22.44.11; Tue, 09 Mar 2021 22:44:33 -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; 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbhCJGnF (ORCPT + 99 others); Wed, 10 Mar 2021 01:43:05 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:53598 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbhCJGmt (ORCPT ); Wed, 10 Mar 2021 01:42:49 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R731e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UREgZ38_1615358562; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UREgZ38_1615358562) by smtp.aliyun-inc.com(127.0.0.1); Wed, 10 Mar 2021 14:42:47 +0800 From: Jiapeng Chong To: mpe@ellerman.id.au Cc: paulus@samba.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] powerpc: fix warning comparing pointer to 0 Date: Wed, 10 Mar 2021 14:42:40 +0800 Message-Id: <1615358560-118239-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./arch/powerpc/platforms/powermac/pfunc_core.c:688:40-41: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/powerpc/platforms/powermac/pfunc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powermac/pfunc_core.c b/arch/powerpc/platforms/powermac/pfunc_core.c index 94df0a9..a5aa40f 100644 --- a/arch/powerpc/platforms/powermac/pfunc_core.c +++ b/arch/powerpc/platforms/powermac/pfunc_core.c @@ -685,7 +685,7 @@ static int pmf_add_functions(struct pmf_device *dev, void *driverdata) const int plen = strlen(PP_PREFIX); int count = 0; - for (pp = dev->node->properties; pp != 0; pp = pp->next) { + for (pp = dev->node->properties; pp; pp = pp->next) { const char *name; if (strncmp(pp->name, PP_PREFIX, plen) != 0) continue; -- 1.8.3.1