Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3527942ybl; Mon, 12 Aug 2019 01:55:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+He0RQlFvpC8VJ5TmRDp8pvRsY3OElIakI3uKrKbNsUhMOCFgY3JiWQ2T5gcmTorVdbNt X-Received: by 2002:a63:184b:: with SMTP id 11mr30637172pgy.112.1565600120243; Mon, 12 Aug 2019 01:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565600120; cv=none; d=google.com; s=arc-20160816; b=z1nTrjhZPVQYoLAN9QbwSfipaxmUJdIqk0PIdBsMRyEmvrDfwZjyTCCqMaw6gO9OQq hXgZRr5wLiIKoAor5kl5ylrVjWBefwPubNwvdsqkFI35O9GDcZ5SEzDoXp4TvP8qbZzu KeHIDkTtP19sbOHsNXbsWinpGpLbpZXXt7kCJ6mwB2sK8iDaW9fCYSclRgAch/8bWYUM /IY7oa4eIzaEeIoEw/N7lK2x6KySYRbThJrrYO2x0RtGzDHs/sp+GqtYfDIX4JnHB3XA XZXMWp6njIoPaBt7xTUAUvLnFGOcHHAMl1jYNMt7gKu0Tkj4UxQiDfgJQ6Icjg2sSqnR NulA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=pRR6Wo7LWY8yZjL2frMp/RMFRMDMjcvdI16ZEg7tNnA=; b=f5WTI2FXlQscsMfDnRTxXPx2l9Vqf4Nh6jzp3DJtDlnlrThMEkFM8pYXMYWaK2RLxm Vb4yIBk7ljCeCpVmyHEFyZm3YNeTWTm57uAkpB12Iz1lAWJ6AnrlIH5qjhILatUtT1WM NxfC0GgjGH8Z7TVblVaZnxNBp5tQJ+3ty1OQFXuNmZTNcFudH670ylSL3SGgpS9YYIRM +eoqDYse+En00Gk9kNQAvyZrDXxrUAD2bDkw2Y/ZI9nFU7xp8pM4r+WC64dx0ARQr1LT eYaiQuB4z0oxFboCL5Hq2XSmcAH2xGmIeq5O3UTLgnguz6Yh5Sbt+60tslFCfLqFK7zv O7xQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si55898778plz.109.2019.08.12.01.55.04; Mon, 12 Aug 2019 01:55:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727199AbfHLIyZ (ORCPT + 99 others); Mon, 12 Aug 2019 04:54:25 -0400 Received: from inva021.nxp.com ([92.121.34.21]:58700 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfHLIyY (ORCPT ); Mon, 12 Aug 2019 04:54:24 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C60F12002FB; Mon, 12 Aug 2019 10:54:20 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1EE902002DF; Mon, 12 Aug 2019 10:54:16 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0D067402D2; Mon, 12 Aug 2019 16:54:09 +0800 (SGT) From: Anson.Huang@nxp.com To: wim@linux-watchdog.org, linux@roeck-us.net, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] watchdog: imx_sc: Remove unnecessary error log Date: Mon, 12 Aug 2019 16:44:34 +0800 Message-Id: <20190812084434.13316-1-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.9.5 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang An error message is already displayed by watchdog_register_device() when failed, so no need to have error log again for failure of calling devm_watchdog_register_device(). Signed-off-by: Anson Huang --- drivers/watchdog/imx_sc_wdt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/watchdog/imx_sc_wdt.c b/drivers/watchdog/imx_sc_wdt.c index 78eaaf7..9260475 100644 --- a/drivers/watchdog/imx_sc_wdt.c +++ b/drivers/watchdog/imx_sc_wdt.c @@ -175,11 +175,8 @@ static int imx_sc_wdt_probe(struct platform_device *pdev) watchdog_stop_on_unregister(wdog); ret = devm_watchdog_register_device(dev, wdog); - - if (ret) { - dev_err(dev, "Failed to register watchdog device\n"); + if (ret) return ret; - } ret = imx_scu_irq_group_enable(SC_IRQ_GROUP_WDOG, SC_IRQ_WDOG, -- 2.7.4