From patchwork Mon Sep 17 02:23:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10602011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A6DEA15E8 for ; Mon, 17 Sep 2018 02:23:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9632F266F3 for ; Mon, 17 Sep 2018 02:23:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A04529199; Mon, 17 Sep 2018 02:23:58 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 02750266F3 for ; Mon, 17 Sep 2018 02:23:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726169AbeIQHtE (ORCPT ); Mon, 17 Sep 2018 03:49:04 -0400 Received: from mga14.intel.com ([192.55.52.115]:14622 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbeIQHtE (ORCPT ); Mon, 17 Sep 2018 03:49:04 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Sep 2018 19:23:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,383,1531810800"; d="scan'208";a="74825931" Received: from bee.sh.intel.com (HELO lkp-server01) ([10.239.97.14]) by orsmga006.jf.intel.com with ESMTP; 16 Sep 2018 19:23:29 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1g1jCC-000HPr-RX; Mon, 17 Sep 2018 10:23:28 +0800 Date: Mon, 17 Sep 2018 10:23:20 +0800 From: kbuild test robot To: "Angus Ainslie (Purism)" Cc: kbuild-all@01.org, Sebastian Reichel , Krzysztof Kozlowski , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: supply: bq25890_charger: fix semicolon.cocci warnings Message-ID: <20180917022320.GA43295@lkp-ib04.lkp.intel.com> References: <201809171037.IF98pmY7%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201809171037.IF98pmY7%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) 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 From: kbuild test robot drivers/power/supply/bq25890_charger.c:614:2-3: Unneeded semicolon drivers/power/supply/bq25890_charger.c:621:2-3: Unneeded semicolon drivers/power/supply/bq25890_charger.c:630:3-4: Unneeded semicolon drivers/power/supply/bq25890_charger.c:638:2-3: Unneeded semicolon drivers/power/supply/bq25890_charger.c:644:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 9d9ae3414d1b ("power: supply: bq25890_charger: Add debugging output of failed initialization") CC: Angus Ainslie (Purism) Signed-off-by: kbuild test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next head: cb90a2c6f77fe9b43d1e3f759bb2f13fe7fa1811 commit: 9d9ae3414d1bb655d8db7079e56b0f51e7cd07f0 [4/13] power: supply: bq25890_charger: Add debugging output of failed initialization bq25890_charger.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -611,14 +611,14 @@ static int bq25890_hw_init(struct bq2589 if (ret < 0) { dev_dbg(bq->dev, "Reset failed %d\n", ret); return ret; - }; + } /* disable watchdog */ ret = bq25890_field_write(bq, F_WD, 0); if (ret < 0) { dev_dbg(bq->dev, "Disabling watchdog failed %d\n", ret); return ret; - }; + } /* initialize currents/voltages and other parameters */ for (i = 0; i < ARRAY_SIZE(init_data); i++) { @@ -627,7 +627,7 @@ static int bq25890_hw_init(struct bq2589 if (ret < 0) { dev_dbg(bq->dev, "Writing init data failed %d\n", ret); return ret; - }; + } } /* Configure ADC for continuous conversions. This does not enable it. */ @@ -635,13 +635,13 @@ static int bq25890_hw_init(struct bq2589 if (ret < 0) { dev_dbg(bq->dev, "Config ADC failed %d\n", ret); return ret; - }; + } ret = bq25890_get_chip_state(bq, &state); if (ret < 0) { dev_dbg(bq->dev, "Get state failed %d\n", ret); return ret; - }; + } mutex_lock(&bq->lock); bq->state = state;