From patchwork Sun Apr 16 06:29:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 83782 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1406512vqo; Sat, 15 Apr 2023 23:44:03 -0700 (PDT) X-Google-Smtp-Source: AKy350Zm7qGYX4QKjmW21kk5swXjJ0CQVl5/YAZF7JMcOo0WlFIdXGHWdchwNU+GL+wldHYqioWF X-Received: by 2002:a17:902:ec8b:b0:1a6:62a2:2216 with SMTP id x11-20020a170902ec8b00b001a662a22216mr9732503plg.65.1681627443507; Sat, 15 Apr 2023 23:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681627443; cv=none; d=google.com; s=arc-20160816; b=VPTYnmLVLRwrreCGhMtn+Mj4yp2tq9r8PnuXjlS+/ScgUCsqI3rYEkIJy438P7VW+Q ZFgE5UWPhkQ5TSzxOYJ+saeoHTFv++huiHvKMl3s4VLY6u6FT5cZj9BlE+onvV/pPhW5 aKDxnvCY5LNXYiorSZKvYGtnddzIJXdRzyxEyhuSoJVke0jnV2fiZmS6WICJHMwXyOPQ N2nssPKvP7tjFkN1U2lUo3/d0impU3lKMwDD2IgDRT7d73aKJw30RvuwY7tdE3YhNEmY 9w7Ox5K7jJo1/s8dBKr0s9ufu14ZqI/qgpUHTVVnvuLXVKkBsKDsKL1+TLxSPtBsq31d bmKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4/y1p+J5P4sf9MxwjHggSXgJ0J0v9pbQqECTb6NgUf0=; b=N5r/UJZ6oy3ESxff/xHDjcw0Jn7DTAKSVzMrV1x0jNpZ/sWLHs5MLc7/YhOCvKQEzH In50v4DRQ4oihuRekru4KXBdd7cpbcLPrj1zIgPxkQixzQC0dNEoGvMZ++ywTVkJYn+x pX09hZPzanIS/ruFPeHvxd1n0pk/CoqrzhI0v7yZTVEY6pzpbmrieVz3Tum2NeqAFcnq Xdf1S5K+SRWzYBTjvBLVXhZbDysRccTv64kQ/mVPJvF//v2wdtiBehKnpX/+M1hpWLTQ Cggj0RukUin5ox8YzCTkf/5au3H1awt1cyztBbnLXJxJwdKDDDXg70fDhtN2mxMPlm4a WnJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orange.fr header.s=t20230301 header.b=SEYoFLJ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a170902db1100b001a6494cf707si9341011plx.268.2023.04.15.23.43.51; Sat, 15 Apr 2023 23:44:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@orange.fr header.s=t20230301 header.b=SEYoFLJ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbjDPG3n (ORCPT + 99 others); Sun, 16 Apr 2023 02:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjDPG3m (ORCPT ); Sun, 16 Apr 2023 02:29:42 -0400 Received: from smtp.smtpout.orange.fr (smtp-14.smtpout.orange.fr [80.12.242.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03732F4 for ; Sat, 15 Apr 2023 23:29:39 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id nvtHpgynZXvOInvtIpyMwd; Sun, 16 Apr 2023 08:29:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1681626578; bh=4/y1p+J5P4sf9MxwjHggSXgJ0J0v9pbQqECTb6NgUf0=; h=From:To:Cc:Subject:Date; b=SEYoFLJ6cBxSp77oZjHGudkSCN1Wdu0QQVaXUXyD9Tc7lStPCIDuudzD3KLpRMLp+ Pxw34MSPnY20YyCGeujLsredFK6iTizuhxu0H3P0Td9pvLCOZXzpigRMvq45ejxB3R 1blo9xNCmMMkqV7eRL48PBVqbiQFOxyhbxZUZlsBS8RGwGD3vKAcB03EiwF6wycErv 65wMuxCHWjOSFmughp/lS19wEEEXywu/G4DHvYkWAzVZebWM02j1cTkMlf1yHvLQeg oYG8rJABQnn3qBdK7bVNkUYGVfgR4ZJ/oJgLgkohRx0lhhNJDl81g9uTJRicEwoFsV 17SKFihW4aQeA== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 16 Apr 2023 08:29:38 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] ASoC: fsl: Simplify an error message Date: Sun, 16 Apr 2023 08:29:34 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763314178034203258?= X-GMAIL-MSGID: =?utf-8?q?1763314178034203258?= dev_err_probe() already display the error code. There is no need to duplicate it explicitly in the error message. Signed-off-by: Christophe JAILLET Reviewed-by: Iuliana Prodan --- sound/soc/fsl/fsl-asoc-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index bffa1048d31e..40870668ee24 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -858,7 +858,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, &priv->card); if (ret) { - dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed: %d\n", ret); + dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n"); goto asrc_fail; }