Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp481299ybe; Thu, 5 Sep 2019 00:38:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzphD7QqnS7RlISmyCLyQLyE/mlD1clqIwgnLVWSBd+VV7czTwBV5Gwhv7lPUbyqS+UZTEp X-Received: by 2002:a17:90a:f011:: with SMTP id bt17mr2431884pjb.42.1567669120468; Thu, 05 Sep 2019 00:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567669120; cv=none; d=google.com; s=arc-20160816; b=M6bos5YR1p9+uQgq8jOEWl25Q2SrWmWaIMFSlJ4E7ZnWoAdIuOA7cH4r7wBsdNla2W JslWQJm8iGuK7gwx8fZimJm1/EE16SI0bdA+0qDp0jGRtqZqgCMUyC6JpAFBkZcmUOSA o3DNRTIdOksvBgWeeuE+QzZbrXfGo+zsvbYUJjB8bb/LCXoARjYJwI0EvpOJ1y02KdnQ 7zurMmAXEriirGJ0G9Jld/WJYlBiBUGM7dqaQgB8E8v3DDEg6utJQDIq+VgKHONZeNts hPgUpNsuxdbk1FN2qONrQxiHp/GIOLFDUXn/4WtltmDqp41apVMXify0fziNLMZ38UwE fK6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=miiherA6K0PKfTQ54Fxka9mtlUf9XNgYskmanlG6ows=; b=HCmpzMf6l8BwGNHJcnSHcIZChsutTpG5YfhW8yzsKHxWT9QMynADxsrAung+LK4Z3F mPhM2W0YgnMD3n2oadyEFnA1N0DtGav4aCfLCKQ5k6cKRdBUsBmqSPNfy0zCWLE3FU4Q UydHzz3Khhn8gIAfuP5qo8nQjWzffSyiG7jVOT/14zQDWhvYc+UcfyGpz+6gdDzg41J/ GXiAhP8QRVx06n6A3uxAjKwpSIJbiEyf9C/MHw/1/puGO65tytf3eedwzeb0Pac2I7I4 WrhYjyJrCyqPgR5WCX8AwcJZY2uGlpXQsEdg3+JB8Rto6pUb2RyobODMACn66kGKtHUy NA9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb14si1319321pjb.66.2019.09.05.00.38.24; Thu, 05 Sep 2019 00:38:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731124AbfIEGqX (ORCPT + 99 others); Thu, 5 Sep 2019 02:46:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:35676 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726097AbfIEGqX (ORCPT ); Thu, 5 Sep 2019 02:46:23 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9F244DBF19FA7DA58829; Thu, 5 Sep 2019 14:46:21 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Thu, 5 Sep 2019 14:46:10 +0800 From: zhong jiang To: , , , , , , , CC: , , , , Subject: [PATCH 0/4] Use PTR_ERR_OR_ZERO directly Date: Thu, 5 Sep 2019 14:43:11 +0800 Message-ID: <1567665795-5901-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the help of ptr_ret.cocci, I find some place to use PTR_ERR_OR_ZERO directly. zhong jiang (4): bus: ti-sysc: Use PTR_ERR_OR_ZERO rather than its implementation misc: mic: Use PTR_ERR_OR_ZERO rather than its implementation phy: tegra: Use PTR_ERR_OR_ZERO rather than its implementation rtc: ds1347: Use PTR_ERR_OR_ZERO rather than its implementation drivers/bus/ti-sysc.c | 4 +--- drivers/misc/mic/scif/scif_epd.h | 5 ++--- drivers/phy/tegra/phy-tegra194-p2u.c | 4 +--- drivers/rtc/rtc-ds1347.c | 5 +---- 4 files changed, 5 insertions(+), 13 deletions(-) -- 1.7.12.4