Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4807392imm; Mon, 14 May 2018 13:30:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHgIjS7cZk4z6phbVRn7KlDjTlUT0EnQj3F9nQt2M4qE0F+xMxLqMpYrp+JU7ni3uL0VT0 X-Received: by 2002:a17:902:108a:: with SMTP id c10-v6mr11580048pla.111.1526329814028; Mon, 14 May 2018 13:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526329813; cv=none; d=google.com; s=arc-20160816; b=X14aElrJmEAxPV0j6J38FiPvUpxbCikblGE255+o+QHDJgMCsf/DqoD8/WKnZ+P/gz Em1VA0yIjkt7t5mzdkeRv6X7ewNOrMqShgkulrBsHKT1tWJsGVVt3mSnGdxgxBt1aNVi kzfvApUc3HUwGt7DN7CvVYNb+FdHX1Y9qumOu3rYTWuAoUL7ifL6yv/8WdiYpudmL4ah 9H179SEEitkIDuL+Emr0B5bJYxuG4gESnpRh/xi0iHG5kwppqZBmAf7G7uy28Py+TGfE 6PYQyWCi71Y+m4OEgAuwNxuD/Ci2bP2xhELyENvxhQy9OZr/JMnxREVWJ0cJcvxqBsm8 0i4w== 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 :arc-authentication-results; bh=ZVafDuiPB4VOclrfUyxwmfTG2qM5sWtI6k2tpeZ8K4Q=; b=nvqHPDLrWF4cGjlUMarhJCbnT9DlR3RK0gRTOEa0aEHI6dxs/x3SpRUt6Y3xW6n/40 gVLYaytfWpMlXx/QskcTnbKzEdv9uux90fVGKqUONmNaYdj2aXNgLYiT8/IV1/xqrfMb 2fSFnZYawikU6Qp5ofGVfwAVcbnmlO7O87ojRM2cCelFyoaxIFk2QQq6gaT/hTeAN75X v3hMTtzTOjybJuca4icHQmnh7WgayTN8F5JrllZfk/+7+L4542d2TcCfn7PBxpOInG2+ H3ReXhexJ8WqTu4KoWhFU1mY2H8AWnlltmy1iI8v7QhD7GuJcHjIK4awQTdvnPyjsuhz zjEQ== 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 j9-v6si10011003plk.587.2018.05.14.13.29.59; Mon, 14 May 2018 13:30:13 -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 S1752111AbeENU2P convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 May 2018 16:28:15 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:41372 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015AbeENU2O (ORCPT ); Mon, 14 May 2018 16:28:14 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (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 940A113D1851F; Mon, 14 May 2018 13:28:13 -0700 (PDT) Date: Mon, 14 May 2018 16:28:12 -0400 (EDT) Message-Id: <20180514.162812.1861734251144855678.davem@davemloft.net> To: hernan@vanguardiasur.com.ar Cc: grygorii.strashko@ti.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: ethernet: ti: Use ERR_CAST instead of ERR_PTR(PTR_ERR()) From: David Miller In-Reply-To: <1526254429-4276-1-git-send-email-hernan@vanguardiasur.com.ar> References: <1526254429-4276-1-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 14 May 2018 13:28:14 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hern?n Gonzalez Date: Sun, 13 May 2018 20:33:49 -0300 > Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)). > > drivers/net/ethernet/ti/cpts.c:567:9-16: WARNING: ERR_CAST can be used with cpts->refclk > Generated by: scripts/coccinelle/api/err_cast.cocci > > Signed-off-by: Hern?n Gonzalez Applied to net-next, thank you.