Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6234681ybv; Wed, 12 Feb 2020 08:24:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxuCtuJoHe7NOOnZUw11NtDgyZzrvGT7nLovA7yDyFUeAZFAyAXPAe+RjeUsmiF1vLQiaTt X-Received: by 2002:a54:4f16:: with SMTP id e22mr6911095oiy.170.1581524668893; Wed, 12 Feb 2020 08:24:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581524668; cv=none; d=google.com; s=arc-20160816; b=pwHI1DfjbL0bv26A/EpG4aU1LQKd2PrNd2rcCiKMNTv9OxvMEGcyeg/UQ0Iwtsl0/Z DpWZc63Ioemr8pdQNvwsHVzc6EHNiBqg+RKQUdCiOWl3jEMk1Gexw0mEv+Xb/7wnL41x MQi3zCxUzv0KxDH1WXn5/6DU/idZBlMyQn/6M2Ia39UvCtK4mSAGIWoaT8eabtEFASYr HWzndFdDqpVNJ4EpL5DuB6fiRcG/yL5HfcvxNwFfRxL6UMyK2iRLG64hgjTh3zVR87x7 CuoDpA9KfTyJNUET4l3FoAcc+kqCspNIOunaYErNJseKvOVCU1cKxxjeazxtrFK0I+zk QYCA== 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:dkim-signature; bh=EdJ9jznJ6wCoLx3M+Q7vLWwv5VYzXfXi+Eg2gF08D2I=; b=RvT17YiZwOiTjz06YJcyHsDZ4k/SLHS6xmv09Wi2iaiALda/Ep0puv43TEwk+QmeI2 D3lJAfqfx+KQG5OPa1vQI5SVnBoet510AiuVMJebf0L1HS+vN83zmtJwyOlQ9YnlCAZJ u5i2InCVwGt/nOyut13tKM0f9ZMTr/Gt7RXJU/d8fndGKv60zWYClJy8fAJEF1H9xuFt VrzkBzAN8Z4GIwUClS81DzBplIUMbUAMi+DfxpYiMMfgy9gKASlL9QUQhC8N4KWxY2dU md6mg7x68oi4lZU5gw1injo1nCmokLhQSud4gwqF90FmErrRPekbKA4TTGknPCWm8NvW tqCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=miH8EZwy; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p191si3480056oic.257.2020.02.12.08.24.17; Wed, 12 Feb 2020 08:24:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=miH8EZwy; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbgBLQYP (ORCPT + 99 others); Wed, 12 Feb 2020 11:24:15 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34922 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727041AbgBLQYP (ORCPT ); Wed, 12 Feb 2020 11:24:15 -0500 Received: by mail-pg1-f196.google.com with SMTP id l24so1478619pgk.2; Wed, 12 Feb 2020 08:24:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EdJ9jznJ6wCoLx3M+Q7vLWwv5VYzXfXi+Eg2gF08D2I=; b=miH8EZwyrhb+567BJVz1H3LtOZjolN68vVQomtTgvaRF686bLqKCfLLvGqjKZCAIfO vEwZnoZTnct1ylTVoh6kwFNTk0xX28/mT2r+cZIP+nVlkmL+PT00G5vmr2dEifKCK6t9 e0cymh4CgsQiIxIAgrASohWQ2vHA/1ShVebZKDRY0sDXK4egykHjQbpcWfowbTtEbqfB VOD6PXOrRpH0E4EsE0KHSi/EMIbadnTfgueujtGvt9H0KJtvh5EVf9ju7oPDxuoMLhsx T6qp7GJc8KKEtqqSi82gAJA0KqRiTRPiDKeHxotQ2YirxY68n1MR+s0fMKhBznbGtwxC S9Xg== 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=EdJ9jznJ6wCoLx3M+Q7vLWwv5VYzXfXi+Eg2gF08D2I=; b=tXFW3luD3H34nUh58tLObqNsbfVnuV5MWfA+o3la2dKN9LLr/ruNOMAbRM1UwbGT9i fTYY+zyTX7Z19a+plZQgqppU+9SGxOcaNzQa0JR8LhkF6Sx8D45MAegjKImG8e8d+HxZ 407Xs3g0XvWYymD5yweDD6X94s61Hra+1wpBGv2Un2tcB9MJPg1vtodrAccuAgDYE7XV 1jIka8qn+K/ObqKPH8iMP8MKBRAe/3ElElVW06dMcDFtauCeTI9mx2iuOrGcyXFjC79L xymRLOjN7E0AD66B0H2fpv0RCI025120BMQTgYXACBOVOes6wCDHO+3sUuDlHI4JBHy9 V3RA== X-Gm-Message-State: APjAAAXoX5BiiJX8r4aI0VTt9QU2T6QLzFt845cPM1Wu0dd3ft6DiJXo fEylpDdQdxG0/7O1IvQd2S9ZN3eeKkjIWCa5r3Y= X-Received: by 2002:a63:583:: with SMTP id 125mr9266610pgf.100.1581524654460; Wed, 12 Feb 2020 08:24:14 -0800 (PST) MIME-Version: 1.0 References: <20200128110102.11522-1-martin@kaiser.cx> <20200128110102.11522-5-martin@kaiser.cx> In-Reply-To: <20200128110102.11522-5-martin@kaiser.cx> From: PrasannaKumar Muralidharan Date: Wed, 12 Feb 2020 21:54:03 +0530 Message-ID: Subject: Re: [PATCH 4/6] hwrng: imx-rngc - (trivial) simplify error prints To: Martin Kaiser Cc: Herbert Xu , NXP Linux Team , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , linux-arm-kernel@lists.infradead.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, 28 Jan 2020 at 16:31, Martin Kaiser wrote: > > Remove the device name, it is added by the dev_...() routines. > > Drop the error code as well. It will be shown by the driver core when > the probe operation failed. > > Signed-off-by: Martin Kaiser > --- > drivers/char/hw_random/imx-rngc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c > index 1381ddd5b891..8222055b9e9b 100644 > --- a/drivers/char/hw_random/imx-rngc.c > +++ b/drivers/char/hw_random/imx-rngc.c > @@ -258,14 +258,14 @@ static int imx_rngc_probe(struct platform_device *pdev) > if (self_test) { > ret = imx_rngc_self_test(rngc); > if (ret) { > - dev_err(rngc->dev, "FSL RNGC self test failed.\n"); > + dev_err(rngc->dev, "self test failed\n"); > goto err; > } > } > > ret = devm_hwrng_register(&pdev->dev, &rngc->rng); > if (ret) { > - dev_err(&pdev->dev, "FSL RNGC registering failed (%d)\n", ret); > + dev_err(&pdev->dev, "hwrng registration failed\n"); > goto err; > } > > -- > 2.20.1 > Reviewed-by: PrasannaKumar Muralidharan