Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3210262imu; Sat, 24 Nov 2018 00:10:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/VtIl5H+tbTofrj/8foe1+O5+b4uiPKJw4h+ewIpfgRtGK1+6bFu8eiQKOsF0OLkj0PrtRw X-Received: by 2002:a65:4904:: with SMTP id p4mr17221202pgs.384.1543047022029; Sat, 24 Nov 2018 00:10:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047022; cv=none; d=google.com; s=arc-20160816; b=Ul0gGO0IdJ9gvYaV9h8SzieirXHUjbq7xpbxrPQXPtl/iUJbrU0Ucazw+40JjfEHuy Z7da/KRu6pStPyC29m1oUB/dmWe8TB0mpTFqBHma/rEQlFH36BTxfDQMuG6ZB0MRqIWb 2LYMUIfze9LLKEcONiqRd0nMoQTurSQ5YeZs/qw4b5y5gkBQhj2bFyE8QWVkB1DWWcdE nFgZOFSfE5h3LPuYqdLOCcFkjVff2CtLy1YbI8G8z8YEtUVmhfeFoZ7C5Pd/UqwqcHx1 wCaN4rJY8YsS6kPEoOF9v/9lqCL/mC5cvvHcGlGCwx7RCa5ZCy+X15V8ZgQdkgad9iB9 frdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Z9lQkKPWTyQAUWDXIrw00zI6J4137n+kAEljY1X7xJw=; b=IfNCmBWRbD9TZb6bJzKnEQEFBEB+S65P1NFoMZqWUC5gvhzWUvjqEClOv7zwjMumDZ Rnxg+fYEOKxilaqsoq4xiPhq4jRVS9AQJqZ2YUX9mt8YoLbfCa2VnqfD2AExr0BJukaS MT6329ZeuD1faBtPkrwUnIpNip4u4ZWphLTyym01rQ/yI9twJTxTr8yC4M6MRBRJeck6 9zqt4jVqOctp9ixKuwXxjU3w0OfmoP3rnG3rqZ/MHNYf8/g9zl2lZsz2Bjussfe4Zfwf UThtQfo1eHUV+uk467xUFqH76E3TTow5d7jY0QIFyBUgXYA4/30lnn+oEzjgfwaqZoci cjaw== 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 j24si50377974pgn.149.2018.11.24.00.10.07; Sat, 24 Nov 2018 00:10:21 -0800 (PST) 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 S2408495AbeKWTEH (ORCPT + 99 others); Fri, 23 Nov 2018 14:04:07 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:36981 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731828AbeKWTEG (ORCPT ); Fri, 23 Nov 2018 14:04:06 -0500 Received: by mail-qt1-f194.google.com with SMTP id z16so9707721qtq.4; Fri, 23 Nov 2018 00:20:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Z9lQkKPWTyQAUWDXIrw00zI6J4137n+kAEljY1X7xJw=; b=ACR+czl+euW91P4fJt3hXcuM8W9ql/L3+y57UdUxJu8L42KPC8h1UJRA8UDHKAWEIf cmTPheX5wNVa7cL5qlHTMwycL+l9vpNCdqGXZW80Q4wpyeWvUAHRnotubBLS1Z3FtN6b km2SWjQpniDDnKMfHpB/v6PL0WRtCD+dQ5vSnT1zqyLxRa/DSgatVgMSB63xejxsIpIP zRsiMJGlvZJVql+fGuV20twmcMoiFb9APk1LpGwdvAHiAPHFfgpk5d1Fj3wjdXaLWtGL iUFTns7rVnD1+SzzqrqUf8xPRAqiiSz4LQsRdo7DjCFQ0FV3Jkmsvo68vBtwfZG3Ywqt NYkQ== X-Gm-Message-State: AA+aEWYz+c0S1KmaA8sbF0cG5sE94ixXCwsqhKn/vXymihFN6O17gqvr cT6QwmGIjB0+3tQckEA67BwUs/S6xHSjJc4E3LY= X-Received: by 2002:a0c:f50c:: with SMTP id j12mr13173342qvm.149.1542961254584; Fri, 23 Nov 2018 00:20:54 -0800 (PST) MIME-Version: 1.0 References: <1542886753-17625-1-git-send-email-rogerq@ti.com> <1542886753-17625-12-git-send-email-rogerq@ti.com> In-Reply-To: <1542886753-17625-12-git-send-email-rogerq@ti.com> From: Arnd Bergmann Date: Fri, 23 Nov 2018 09:20:38 +0100 Message-ID: Subject: Re: [PATCH 11/17] soc: ti: pruss: add pruss_get()/put() API To: Roger Quadros Cc: Tony Lindgren , Rob Herring , "Beno??t Cousson" , Santosh Shilimkar , Ohad Ben-Cohen , Bjorn Andersson , Suman Anna , Sekhar Nori , Tero Kristo , nsaulnier@ti.com, jreeder@ti.com, Murali Karicheri , woods.technical@gmail.com, linux-omap , linux-remoteproc@vger.kernel.org, Linux Kernel Mailing List , DTML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 22, 2018 at 12:41 PM Roger Quadros wrote: > + > + if (IS_ERR_OR_NULL(rproc)) > + return ERR_PTR(-EINVAL); Any usage of IS_ERR_OR_NULL() tends to be an indication of a badly designed API. Please change this to allow only one of the two to be passed around. Arnd