Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2574471imm; Thu, 16 Aug 2018 11:45:11 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwaM/nbntn6KZ71LS2leblAybVePFG3LJtQmbPG7oVitOHBIUoQRKqNPqLsGY5y85ZgvJ74 X-Received: by 2002:aa7:824d:: with SMTP id e13-v6mr33314973pfn.97.1534445111221; Thu, 16 Aug 2018 11:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534445111; cv=none; d=google.com; s=arc-20160816; b=u3zZ362cr0ji86ey5hIM/YGrOlFd2Ogod5c3loZZPtz90VFwuWEg9Pc+M2QJoQu45q DbrTPbf0oZGSB574Bi8g7TJ7HqpyYn41qrmgtUKU/fARbot+FLdCZZ3xAvgpP7STckG5 lF8G3up9cMWo7SIzl8Z5HHX8E3wVeOTPrGYXta1XKUZjGvAW9A1H2TrghHSvC+SSBDLu VvQeU5k7eUVbS98fFpp1RDCqvzyFJdPx6La60gL5yHBIrKASyERoYejc9pxsSA5bW/6S 8uHjr4m1ryywjUEDHVHKTlbKA8eSvrZw8Xf2BZDncddmiTn0dTZhANy1j8ndaBCMaBzT Uq2w== 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:arc-authentication-results; bh=5fCyGzifMqATvLirsytOga8SmdGNJwpLy1INMqSQQwQ=; b=xR7mdsiB3Q2ET7cOzcOCPUsBlGmyduZfcfFR7BmyTXXZohG8WY6zIIInvZRuXtmz2Q Qi9Caea0n48464QUatS/t0t6ZIjgz/11v03mPBos7yjRSm4u1vp602NfiyvrEYwEDiSb XytRUxOG8lQI1xE+7rYdPIRZ0iIPZNyYXB/zcT3WsswFSXGf5Qqsm1ByPEDPaFTy88NS lM+MKAOcby8wKUPHhWkZu0lCC1wgJfemNCn+ECjPseH9Fbrc3As2xfF9lqlWwPVIET+s AmYd40GMbksByH90b3FeJ1a3uHJoY7A4RaVuSUBzkfsSgMY6EtDsKTagc06YhwFmabYx DXPA== 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 j20-v6si53445pgb.92.2018.08.16.11.44.54; Thu, 16 Aug 2018 11:45:11 -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 S2392218AbeHPTKP (ORCPT + 99 others); Thu, 16 Aug 2018 15:10:15 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11121 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729150AbeHPTKO (ORCPT ); Thu, 16 Aug 2018 15:10:14 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3DC9B63A39663; Fri, 17 Aug 2018 00:10:46 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.399.0; Fri, 17 Aug 2018 00:10:45 +0800 From: zhong jiang To: , , , , CC: , Subject: [PATCHv2 0/2] phy: Use PTR_ERR_OR_ZERO to replace the open coded version Date: Thu, 16 Aug 2018 23:58:53 +0800 Message-ID: <1534435135-49332-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 The issue is detected with the help of Coccinelle. v1->v2: - According to Florian's suggestion, change the subject of the patch. zhong jiang (2): phy:phy-brcm-usb: Use PTR_ERR_OR_ZERO to replace the open coded version phy:phy-lantiq-rcu-usb2: Use PTR_ERR_OR_ZERO to replace the open coded version drivers/phy/broadcom/phy-brcm-usb.c | 4 +--- drivers/phy/lantiq/phy-lantiq-rcu-usb2.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) -- 1.7.12.4