From patchwork Sat Apr 15 16:23:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 83741 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1140248vqo; Sat, 15 Apr 2023 09:47:45 -0700 (PDT) X-Google-Smtp-Source: AKy350bdJjcpQxo+YZ0wp7URepfsy+x0G/DAJPudNkmNeFj+MiX6evGsaZcBUsS0WJqLdsPlsaWM X-Received: by 2002:a05:6a20:3805:b0:d9:8a1b:3315 with SMTP id p5-20020a056a20380500b000d98a1b3315mr7978310pzf.59.1681577264977; Sat, 15 Apr 2023 09:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681577264; cv=none; d=google.com; s=arc-20160816; b=Nd6YH6rJAsJsznlXJrIBCjVwXSAuAK6H6F6xt0XRqi0rItt1M0ZtVflIwscAi39bbb gLuNllZtRpA62+eMQSW3QjHbSIfGBT8ML42GuGEnwoHdaXYkjwEvkJ38p8lIPGcD0YZq 6SuQZPNFJIMohoZcvO6iwZaU/Nqc+TOoC/8DAmM+FgM3uGA0lckkhb++Rnh3YcCcl7Xm zmierYJnoS80SsfqfFiRBgc9/skJJ1LSm8H1/Ppbk8jQFkrxe8IQdz3p9r6SQ7H2IfBY 87H5o0cgGwH62fn9ky22nMaDD5VHWPoJkMEa4zFhveh2q5M6m0fyL/cXoUgLj/aSBhN8 mpUw== 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=MAu6FtQocPfF7HLftUeIz5L/LjWmrKfwqCeX9Eip2zs=; b=lfPlRCkPPjL6K8kPXjEmdOw0HnAoOExBWGekB34lbndYtK7ECtA466JqwGbel4sdWp 308uzTfsXgNrMMivdcJ38pxA0bCB+EEFiDz90FBINtvqd6utF7CiVddLGmH14NhXPNkY VUUBSrDY1eM0RnAACWk4yc0t/yOYiMLvYpzPlItjB9ZB8Le3b5jKX+VGMv+nLs6uNXiD MtQXm0+y9vUEsi659SHDknlQzx0l8MirQdDQxoWim0Bg15OUxeY/VKL6hpHCLwd2zP23 MHHmGACoy9mk6f9NS/qsp4wgQYqmoznITMf/oKFlOn4Thuuk82MgSBcyJK5xU7ge/o8n 9gdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orange.fr header.s=t20230301 header.b=MQexySYL; 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 c2-20020a624e02000000b00636b6e10ed4si7194525pfb.85.2023.04.15.09.47.32; Sat, 15 Apr 2023 09:47:44 -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=MQexySYL; 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 S229776AbjDOQXq (ORCPT + 99 others); Sat, 15 Apr 2023 12:23:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjDOQXo (ORCPT ); Sat, 15 Apr 2023 12:23:44 -0400 Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA094205 for ; Sat, 15 Apr 2023 09:23:42 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id nigdpWagKzvWynigdpJpvG; Sat, 15 Apr 2023 18:23:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1681575820; bh=MAu6FtQocPfF7HLftUeIz5L/LjWmrKfwqCeX9Eip2zs=; h=From:To:Cc:Subject:Date; b=MQexySYLp4AK43xDaS2eH2jE+/tLInYnZZZtFldvpZqTrZ5vInwfiaB6Kw1DO/EpX dcaFupj8Wl8wECUb5kxyydHW9OSUxvPzkWnxWFbKsXHi7Z78CPKmCztmeKjDkoLN9y t+H9b19kkLUgVoaJV1qwuNL+ANuct4X8JwdHDZG8jF/bfRrQeZzePDpTQbkjGJNfxL 7O45Db1USkV7v5LBA0f8gmelrH1/1GwN6ughha1ZNTvemwKSIJAs+MLhECion1eyDI c8JoUEelAIMTxU34c988bmnUM7qVMCJJb42zPpswesP23xOuXZnK9+6rrgp/LWp6NB OdPo2ALpKyDQQ== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 15 Apr 2023 18:23:40 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Emil Renner Berthing , Jean Delvare , Guenter Roeck Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-hwmon@vger.kernel.org Subject: [PATCH] hwmon: (sfctemp) Simplify error message Date: Sat, 15 Apr 2023 18:23:37 +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_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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?1763261562266393726?= X-GMAIL-MSGID: =?utf-8?q?1763261562266393726?= 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/hwmon/sfctemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/sfctemp.c b/drivers/hwmon/sfctemp.c index d7484e2b8100..fb1da93383d7 100644 --- a/drivers/hwmon/sfctemp.c +++ b/drivers/hwmon/sfctemp.c @@ -303,7 +303,7 @@ static int sfctemp_probe(struct platform_device *pdev) ret = sfctemp_enable(sfctemp); if (ret) - return dev_err_probe(dev, ret, "error enabling temperature sensor: %d\n", ret); + return dev_err_probe(dev, ret, "error enabling temperature sensor\n"); hwmon_dev = devm_hwmon_device_register_with_info(dev, "sfctemp", sfctemp, &sfctemp_chip_info, NULL);