Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp33187pxf; Tue, 9 Mar 2021 22:55:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2cT8uljs+XL8Y9/Ezb5kOD41MAhN4aW8K+PYyByLkYDS2+gxq5u5sOA7fXK4Ct2+JV9iC X-Received: by 2002:a50:ec07:: with SMTP id g7mr1601365edr.72.1615359319670; Tue, 09 Mar 2021 22:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615359319; cv=none; d=google.com; s=arc-20160816; b=I2REpNaZQBrSVDgHz2SW4K+y/B+m2e8K3bh79YjGtl/XGjR+8nwTeJb0xqVi72l6lf GPuinbSJV+pGJMWurRQKlfgvEWbKi46icp0MMesNb2g7r5gXgSTF6GofbvYSBjpXuK2T D+QivaOiFPUggMiVUtqj9D2RTPw+MBr3gawP79Qjg2Ml+0TjO7LC5U6MttR5zbTLr4mT OdN1ZkeqOIEKvE6hUgXh4TSxLO81yegA8VHhp5fLgxQCF8IrP9WrPUp5Ide+TooFwAfh ObVHBb1A8FbDdgc5KXH+sscCwP/UT27+epH4OEv8uLfKDdWq59sDWwoalHz4u8G3j5Zr qubQ== 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=s28FnRewX6v4CMLXbNtO1IawQQnaG1mJ1kdMLsxKQok=; b=plCyaeK2mFLio6EbsWM5actetFYGSYIDSrPj60aayao5707p4a6TY/lZsqgW1Av//8 My7cTlTp5D96NEEtkQTV5jYkfLngn9JFmZelNdQCW/dq7C25QY9+MyiLaJjUEElfoO2X VBYIwXp+ncdnVFVNmbTJgbCNT4rl5Jh2cJK/C/a88uY9+JoF3pW85c64+SncwXEi1hC0 BdBqervpd9WqdfTwmurxFKpkJR/iOEes9EUucAEsHxro3KMIkM+eUvO8XQh0EHuvlgnk IpdyllXEr+NtX6XaTYo1Lvbc27w8OxIgr0/F/yW19pBbYTTtOdjLZcUzQJI2sdQWYKQm h8Pw== 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 l12si8675399ejn.151.2021.03.09.22.54.57; Tue, 09 Mar 2021 22:55:19 -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 S229691AbhCJGyD (ORCPT + 99 others); Wed, 10 Mar 2021 01:54:03 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:27817 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbhCJGxr (ORCPT ); Wed, 10 Mar 2021 01:53:47 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0URCZoLM_1615359220; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0URCZoLM_1615359220) by smtp.aliyun-inc.com(127.0.0.1); Wed, 10 Mar 2021 14:53:46 +0800 From: Jiapeng Chong To: bcain@codeaurora.org Cc: linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] hexagon: fix warning comparing pointer to 0 Date: Wed, 10 Mar 2021 14:53:39 +0800 Message-Id: <1615359219-1528-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/hexagon/kernel/traps.c:142:6-7: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/hexagon/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/hexagon/kernel/traps.c b/arch/hexagon/kernel/traps.c index 904134b..58083df 100644 --- a/arch/hexagon/kernel/traps.c +++ b/arch/hexagon/kernel/traps.c @@ -139,7 +139,7 @@ static void do_show_stack(struct task_struct *task, unsigned long *fp, } /* Attempt to continue past exception. */ - if (0 == newfp) { + if (!newfp) { struct pt_regs *regs = (struct pt_regs *) (((void *)fp) + 8); -- 1.8.3.1