From patchwork Sat Apr 15 16:25:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13212571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DC76C77B70 for ; Sat, 15 Apr 2023 16:25:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbjDOQZt (ORCPT ); Sat, 15 Apr 2023 12:25:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbjDOQZr (ORCPT ); Sat, 15 Apr 2023 12:25:47 -0400 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BEDD4205 for ; Sat, 15 Apr 2023 09:25:45 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id niicpmmuPuZFDniidpv4WH; Sat, 15 Apr 2023 18:25:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1681575943; bh=0ZTOsuOe5l/P6twE7yNwHhcSMb6Pv10MoGFjviDm2bw=; h=From:To:Cc:Subject:Date; b=WnBrPLQlml6/G/jNEyBVszuiG/RwCDn37wK4n8S+LoObPNkZ9TcP2hFH7w6ol2xBN rtO1i01P4QcRbBhjWuJEPbGNaGWocBaeITZxDtjT7PUvHy9KkkLt+OeFM6bR1F2dWR G3T/rIkPkbsLEMuNgpxFinU5HWsW6SAV+6pu/44vRMHMCKocHWVDpODZ3pvoXu5X4h 1hVdfTszaFhd23+HoB0bzCP0PEI5V/NtPPtHWQ5qMMvv3FF3cerxybjkdTSbaTKwa/ jmQDaCigvvvFIs60bIOUBSnd4w8XL6FQrsN7y4elxI1NjNjkQKnx8l4W8NpXSuxyrB 4gE+WdoZOhUZQ== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 15 Apr 2023 18:25:43 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Dan Robertson , Jonathan Cameron , Lars-Peter Clausen Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-iio@vger.kernel.org Subject: [PATCH] iio: accel: bma400: Simplify an error message Date: Sat, 15 Apr 2023 18:25:41 +0200 Message-Id: <9373d41b0a1f3dc3fc0d31c1daaa19d9a7ec4dcd.1681575924.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org 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 --- drivers/iio/accel/bma400_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/accel/bma400_core.c b/drivers/iio/accel/bma400_core.c index a68b845f5b4f..e90e2f01550a 100644 --- a/drivers/iio/accel/bma400_core.c +++ b/drivers/iio/accel/bma400_core.c @@ -868,8 +868,7 @@ static int bma400_init(struct bma400_data *data) ARRAY_SIZE(regulator_names), regulator_names); if (ret) - return dev_err_probe(data->dev, ret, "Failed to get regulators: %d\n", - ret); + return dev_err_probe(data->dev, ret, "Failed to get regulators\n"); /* Try to read chip_id register. It must return 0x90. */ ret = regmap_read(data->regmap, BMA400_CHIP_ID_REG, &val);