From patchwork Sun Oct 29 15:35:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10031553 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A77EC603B5 for ; Sun, 29 Oct 2017 15:36:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D8A2205FC for ; Sun, 29 Oct 2017 15:36:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92314285CF; Sun, 29 Oct 2017 15:36:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 483EC205FC for ; Sun, 29 Oct 2017 15:36:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751167AbdJ2Pf6 (ORCPT ); Sun, 29 Oct 2017 11:35:58 -0400 Received: from sauhun.de ([88.99.104.3]:42734 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750959AbdJ2Pf5 (ORCPT ); Sun, 29 Oct 2017 11:35:57 -0400 Received: from localhost (unknown [94.230.152.199]) by pokefinder.org (Postfix) with ESMTPSA id 7AC132C4212; Sun, 29 Oct 2017 16:35:55 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: linux-pm@vger.kernel.org, Phil Reid , sre@kernel.org, Wolfram Sang , Sebastian Reichel Subject: [PATCH 2/3] power: supply: sbs-battery: remove unchecked return var Date: Sun, 29 Oct 2017 16:35:44 +0100 Message-Id: <20171029153545.3947-3-wsa@the-dreams.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171029153545.3947-1-wsa@the-dreams.de> References: <20171029153545.3947-1-wsa@the-dreams.de> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since the return value is not checked anyhow, we don't need to store it. Reviewed-by: Sebastian Reichel Signed-off-by: Wolfram Sang --- drivers/power/supply/sbs-battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/sbs-battery.c b/drivers/power/supply/sbs-battery.c index fb61da370947f4..83d7b4115857e3 100644 --- a/drivers/power/supply/sbs-battery.c +++ b/drivers/power/supply/sbs-battery.c @@ -556,7 +556,7 @@ static int sbs_get_battery_serial_number(struct i2c_client *client, if (ret < 0) return ret; - ret = sprintf(sbs_serial, "%04x", ret); + sprintf(sbs_serial, "%04x", ret); val->strval = sbs_serial; return 0;