Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp149693ybj; Wed, 6 May 2020 13:48:51 -0700 (PDT) X-Google-Smtp-Source: APiQypKHBLrms8gDEoN/foLe5qQac9ees1xkHP9zfn2JpN+WMU7OKDYFQfypvTzJ07/BNvuXI/2I X-Received: by 2002:a17:906:b217:: with SMTP id p23mr8878599ejz.136.1588798131272; Wed, 06 May 2020 13:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588798131; cv=none; d=google.com; s=arc-20160816; b=sDyGfIxB2Zkcj51xngumUcELgyBTgMLqR/EV0Vw5H+be9RrfbCf3+T0Su6yPvn4XYD EVgchQ9Ue88/GVV3czQpaoaf+rHOount2z7Z1nHhRFrjkpGso/q3W4TLRn8+nHKGyQPF JYG/qiEeD3JIMfWhnp6GLwBO5OaUVLTE8WB7hWFS4ATYnZQ7ISmrNTk8P8YXUhyZ5TBa BOuwSSVuRtE9X0SxVQe6emV6KCS+nbN5DWDmFcHRlXmfuUmSOp4DpdOZ9aUYz+NaCIYb XCNe7cabWLt91q16xDbWTISY+BNYQ/AkTpoDHmrp7OUyA8E1hpDS+YtA0pRo0LxQEdoQ BmvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=dpuZKXqNydFqeSVVcFBvwLlMVCzSbwN27aY7iUlmejU=; b=KpGgTmwPf+KabCURo4I/NogpBUvOulfS+wGhwnz/G9FE1RG+tKbP4ENRUN9FBAJRxV kKeelum1ejD0byeB0N6WpzidrTJhonI+SRFVNe1EHMF8Awl/0hoN0nMy8X5l4uoLr9VC DuFM/1F6rjrptw9mNlLFMbgf7ivd/uLEi8NB+ixyjXcBub8MEY89YZoF2DF1h9eOqijV mCcWkce/YkDjTwCp5TnHKK22eNtUGowSfwTXNw9dxv+sM28Z3XM6fDFFIetIaFPJNrXG EonDGTuWO/n9yhhSMGQfR02hSSH9qS5P5QV2YdejSEsgFu1PqRKTmbxS9QZzY2V22qTk TX9Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 95si1908654edq.375.2020.05.06.13.48.27; Wed, 06 May 2020 13:48:51 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728716AbgEFUoL (ORCPT + 99 others); Wed, 6 May 2020 16:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726093AbgEFUoL (ORCPT ); Wed, 6 May 2020 16:44:11 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8962CC061A0F; Wed, 6 May 2020 13:44:11 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 8A3C91210A3F3; Wed, 6 May 2020 13:44:10 -0700 (PDT) Date: Wed, 06 May 2020 13:44:09 -0700 (PDT) Message-Id: <20200506.134409.803201874191126476.davem@davemloft.net> To: zou_wei@huawei.com Cc: grygorii.strashko@ti.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] net: ethernet: ti: Use PTR_ERR_OR_ZERO() to simplify code From: David Miller In-Reply-To: <1588733698-33746-1-git-send-email-zou_wei@huawei.com> References: <1588733698-33746-1-git-send-email-zou_wei@huawei.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 06 May 2020 13:44:10 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Samuel Zou Date: Wed, 6 May 2020 10:54:58 +0800 > Fixes coccicheck warning: > > drivers/net/ethernet/ti/am65-cpts.c:1017:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > Reported-by: Hulk Robot > Signed-off-by: Samuel Zou Applied to net-next, thank you.