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: 83739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1137862vqo; Sat, 15 Apr 2023 09:42:30 -0700 (PDT) X-Google-Smtp-Source: AKy350bUWNRlc/kC6gGbUFXgal9PQaxP6Ih9535T+lMvru7QdyiOVmVBr6GKkCSpdTZbCidiLPYq X-Received: by 2002:a17:903:2652:b0:1a2:c05b:151c with SMTP id je18-20020a170903265200b001a2c05b151cmr6300600plb.34.1681576949806; Sat, 15 Apr 2023 09:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681576949; cv=none; d=google.com; s=arc-20160816; b=JANdKZ+BQ7FZFgYPGiajzDYBpArOmbIJoSGoDl3hkWlR8MEA3rlHCgOkHxSRI14XV3 dmx/wXcnTOUAfFlBU/MUaSzY/KofYh95GHMktl+ebiUGd0gJ3BQx0ZYe/s2Q2enTPx9o PlqyfxyuS6e4rkTv7JMGX9D+wLkDafL6DlGh3SurebLMyaN7LpzrTlTIKzrB2TgLRMBY /Tjibix0DRj0mZDyZPFubemVn0hl3uQIF+dPNTTVKB0IMWNTzFQZa6AP7vw9LoGbbQ+6 HfpHRsUKVxdNxpBME1suPq45jT+nYfGXrkPpcUXhldwK85NvEmvUm/GQagZg3+e+F9Rc mcsQ== 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=0ZTOsuOe5l/P6twE7yNwHhcSMb6Pv10MoGFjviDm2bw=; b=TeuzmgVu9FYMhWbT7cJ7zbWYO+U0ozqrds/EjRMRXHcmMJeVmOfweDNZDuvaLgSy4N v1Bt49ztn9kmAqmvc+idDr1/nOkeeRp2GuGy+B3fv0HIRvDnVBw4fRC3+xbpKPo/8LGy +bvcv4i5o2S1jLubhRRfuOwFs7/gPydYCxrR7rAUiyggFUuvAnaoiG/fJki3YeVAWXSZ zczhYZJBNF5NcxUoWSqLe1oNsbVDQ8+/wi/8jNmeNo6IR2ZbEiEdwgHCyw59qEIKTz8A kO5/a0Cb+xgZ+jFtJtpXNPWom9pabAbUfdN9F8BPQ5qy3rxECAWkpSfwegfc+H6SB9sZ YUwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orange.fr header.s=t20230301 header.b=WnBrPLQl; 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 i12-20020a17090332cc00b001a645ef5e4esi7787961plr.436.2023.04.15.09.42.10; Sat, 15 Apr 2023 09:42:29 -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=WnBrPLQl; 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 S229678AbjDOQZt (ORCPT + 99 others); Sat, 15 Apr 2023 12:25:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjDOQZq (ORCPT ); Sat, 15 Apr 2023 12:25:46 -0400 Received: from smtp.smtpout.orange.fr (smtp-15.smtpout.orange.fr [80.12.242.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6482340F5 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 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?1763261231872434731?= X-GMAIL-MSGID: =?utf-8?q?1763261231872434731?= 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);