From patchwork Fri Apr 3 20:20:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 11473455 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 11B021392 for ; Fri, 3 Apr 2020 20:20:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D92AE206F5 for ; Fri, 3 Apr 2020 20:20:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="Rp/xDo2N" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727998AbgDCUUd (ORCPT ); Fri, 3 Apr 2020 16:20:33 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:41777 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727792AbgDCUUd (ORCPT ); Fri, 3 Apr 2020 16:20:33 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 48vBBk6XyxzGl; Fri, 3 Apr 2020 22:20:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1585945231; bh=PxKU8o7BoNDyLrnKFV+GeC6g2YaP/coZt/imF8aw61k=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=Rp/xDo2NMn12KWOwZ97Q+rGvA9PFSNCj0UJ70qKRIcVBTdR0x4kB4/OFSyAsTXkqC cdPfiiZp6rOkmPZ3iWJ8I1yMbddICzP54BTtK0AgbkZzibHM9QnR46s7B9F0f5sY5O KcscNokGsWF34mqVcKjSWTP1lRJi0OCDKFNVDalnS29LbOD1qNhciiY3xFrO19wzAY +w/PClpyJFYBzyoJc/dz+vaASEZRV0t0vFitKn+IqFtiO9EhqOOkX6TEl4eMV+kwcu /ocuroFjabcxyV46D4iJLzelb14/quZxuhXIUBRHiRkBB5YyE7XbiEgJFxabYDXlNg QylkDPUIXOt6w== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Fri, 03 Apr 2020 22:20:30 +0200 Message-Id: In-Reply-To: References: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v3 01/11] power: charger-manager: remove duplicate assignment MIME-Version: 1.0 To: Andrey Smirnov , Guenter Roeck , Sebastian Reichel Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org num_properties is already copied earlier using memcpy(). Remove the duplicate. Signed-off-by: Michał Mirosław --- v3: initial version --- drivers/power/supply/charger-manager.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c index a21e1a2673f8..887f5bb879e5 100644 --- a/drivers/power/supply/charger-manager.c +++ b/drivers/power/supply/charger-manager.c @@ -1728,7 +1728,6 @@ static int charger_manager_probe(struct platform_device *pdev) memcpy(cm->charger_psy_desc.properties, default_charger_props, sizeof(enum power_supply_property) * ARRAY_SIZE(default_charger_props)); - cm->charger_psy_desc.num_properties = psy_default.num_properties; /* Find which optional psy-properties are available */ fuel_gauge = power_supply_get_by_name(desc->psy_fuel_gauge);