Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp313042ybl; Tue, 28 Jan 2020 03:44:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwHhSThLRJfYtnw10rFIb+cQMp3DzbcawEkK5R5YRVOqDn6N++JkVTKAWGN0M/nJmEDjall X-Received: by 2002:a9d:6e98:: with SMTP id a24mr8240296otr.53.1580211869089; Tue, 28 Jan 2020 03:44:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580211869; cv=none; d=google.com; s=arc-20160816; b=Lfnd7+K3I9rLJZyc7Drt6+bsSRPpKJcbXkhgKfeKyvtCaZUL4e6jT8fq/bl122/Hve j8nkC8RkM+i1HXFir0RTHdWa+I2KlNJXcSbKPUOdzfuJie88f93wRXTQloVcuajftLhl U+iTGvHCWU7q7wUd79Uof332+dW6argPynDG448VQCNdqYXjkC3Qv70MBvK1L2kukvra KwMx3V7ayXNoRuYms/d5V1N3wvActOYYl34SUSIYiCqyWuJ0FIKBxyhhxF4Bj1MYyUVM VKg2r6hzRcR0Zg0exVNv9U/Y+FGCRXznDkkgfQg4dvEpgykaZJxbtL1/VO0ci+adrz0j 6LZg== 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:message-id:date:subject:cc:to:from; bh=AgPkpdQCqypRR4saXys0gUAyqZloMhLsaKRBIi9cws4=; b=l5/289Fz1cKVLdr3pcAxUBj4UwoDCEU6vIi6V83qSkbrshDX6Bl9wayC2Kxg2yL9Ic HgtObMxvOkL87LZIrZSspeDx1hqWBFvB4L+T6w/oLBOepNF68Od2ZK4WffPdu4lvWVlC uqOKm/OkWpDdCSKCPr+bn643ikR/T57Nb+gTF/lBk14YNJROCKNYTAbjRN6LQgEJBA3l 26z69N6GJZpnr4cwhmwLFdng8OkW2UWtM/cGmYH6gX8A+eOJYGQSuH9F8zWk3cR9nhhH XHCvdgDV9VKOomWUaQyfZrptqDGqUAfxGdFSOCULbWSZdecxnjDC6SohTfJpbS8qaA2C 5o8A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m85si5173758oig.158.2020.01.28.03.44.18; Tue, 28 Jan 2020 03:44:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726346AbgA1Lna (ORCPT + 99 others); Tue, 28 Jan 2020 06:43:30 -0500 Received: from viti.kaiser.cx ([85.214.81.225]:39812 "EHLO viti.kaiser.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbgA1Ln3 (ORCPT ); Tue, 28 Jan 2020 06:43:29 -0500 Received: from dslb-088-068-095-017.088.068.pools.vodafone-ip.de ([88.68.95.17] helo=martin-debian-1.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iwOcj-0008Dy-85; Tue, 28 Jan 2020 12:01:37 +0100 From: Martin Kaiser To: Herbert Xu , PrasannaKumar Muralidharan , NXP Linux Team Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 4/6] hwrng: imx-rngc - (trivial) simplify error prints Date: Tue, 28 Jan 2020 12:01:00 +0100 Message-Id: <20200128110102.11522-5-martin@kaiser.cx> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200128110102.11522-1-martin@kaiser.cx> References: <20200128110102.11522-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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