From patchwork Sat Apr 15 16:49:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 83742 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1141626vqo; Sat, 15 Apr 2023 09:51:08 -0700 (PDT) X-Google-Smtp-Source: AKy350bNkoGEErEVapJEd3zyIU10jyPqn0cUlCshvdATf9rhWSmmMPJXa7s4ZbuTKUGo8TypVXZk X-Received: by 2002:a05:6a00:1ac7:b0:63b:5f78:d6e1 with SMTP id f7-20020a056a001ac700b0063b5f78d6e1mr10418115pfv.16.1681577467947; Sat, 15 Apr 2023 09:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681577467; cv=none; d=google.com; s=arc-20160816; b=o22JgRl2+JkvVR1uQDm1QrL03zIzpG35vipPVR00DmOrOXN5a8oz3F0NPfyEioLAJJ OQWl3R5e96zJteo743HK71OvYpFHA/ixcczCCamvth6GksM5FBUhgaeaOXColLHungAD 9LWy/4GRPWVSXZz2C9j/lQHUdb2aF/EEvks3uQABfUkb4E97k94IseyXLw9EdvTRRdNn QFh3ksq1lcwnHD3LIsTCh6lwe2CtdunulE7ZIu+lfME7MADy7A9bwuCG+dPCZsF0eNHg GWCekes9sFIjRBmZ4HhKC+J+HiIXrBgPOafRoUlaFGwqP57B8rOc5aP6k7l8XA+pPHPj Q7Vw== 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=PSevjxPblNgenbQKclhvbfNSF7IweMAlAYEf2CBuRgI=; b=I0QKy1PgH1+e5iwmCnF4PdUWe2XoY35x2K+LVSxG9nNN+9VMZTI8yeYhCSvOyG+Xk6 0N+uiu9GVSBEfcv3neDzOfLwA1KX/+FcRrmUHfLlBKNPmnk0d/or8HkllV50hvpFG9pT nzdMmQ1QwtFg0cq0UT5J/vhDQExvtidpvpeU7h7pXrMwH8JsG2IOEYQbni0WUpoVkbHa knz6KsZOWUwdkUbkphBNbbNMK2TGnMzg+sgvssBUZCZe40wiD20oJxOh3903sItHKAqD MixlQkL34m6s+6TeHxW+0RkVSGQ7YtJ6usXEnyUyQvtJVKCyWNU17vsDg/3Xe5s+78uz JOEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orange.fr header.s=t20230301 header.b=KKGBIGhD; 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 h184-20020a6383c1000000b0051ba1651735si2563pge.186.2023.04.15.09.50.55; Sat, 15 Apr 2023 09:51:07 -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=KKGBIGhD; 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 S229774AbjDOQuD (ORCPT + 99 others); Sat, 15 Apr 2023 12:50:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbjDOQuC (ORCPT ); Sat, 15 Apr 2023 12:50:02 -0400 Received: from smtp.smtpout.orange.fr (smtp-25.smtpout.orange.fr [80.12.242.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B89BF469B for ; Sat, 15 Apr 2023 09:49:59 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id nj64psmg4JwBhnj64pAfJN; Sat, 15 Apr 2023 18:49:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1681577397; bh=PSevjxPblNgenbQKclhvbfNSF7IweMAlAYEf2CBuRgI=; h=From:To:Cc:Subject:Date; b=KKGBIGhD9lXBIwFZeZKGre86PbiDCK6j+Dc/9AfqcRqevTt08PxsIxkG0YWZBgALF m4swg+MURqZ4W3QDjAxj8djlx7WOggTXQcUsFcM/ZA5Xg1zXw5VioEk3+XN6FwjXLY rEgqcwnTTYsgO7WldbFrn5ppOtoOfNrV2c6bI7lkecNsjk3aQF/85YAoUyxZNw1uRF g/Hr3VeabifR3/dI5L7oe/cIjC6cFfZm6FUbbu8mePCtVmwX/hNOofAjndYipu8kKw sC7dYiDBPzz4JLOEE06Q5HBwwSjGy+99Gr5l7KL49hNOqNk6dDiq7l4bm1NhQKrsnt O0mQEbg9FaBuw== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 15 Apr 2023 18:49:57 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Sebastian Reichel Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-pm@vger.kernel.org Subject: [PATCH] power: supply: rk817: Simplify an error message Date: Sat, 15 Apr 2023 18:49:55 +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=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?1763261775348261582?= X-GMAIL-MSGID: =?utf-8?q?1763261775348261582?= 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/power/supply/rk817_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/rk817_charger.c b/drivers/power/supply/rk817_charger.c index 1a2143641e66..8328bcea1a29 100644 --- a/drivers/power/supply/rk817_charger.c +++ b/drivers/power/supply/rk817_charger.c @@ -1134,7 +1134,7 @@ static int rk817_charger_probe(struct platform_device *pdev) &bat_info); if (ret) { return dev_err_probe(dev, ret, - "Unable to get battery info: %d\n", ret); + "Unable to get battery info\n"); } if ((bat_info->charge_full_design_uah <= 0) ||