Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9061175imu; Sat, 29 Dec 2018 09:26:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN58eHIoU/itiFylULSPwGi5dMiqUbkrKInVikUy9m3CiGgzS2OpJ4SDj0w3wr6xIRg6z2vu X-Received: by 2002:a17:902:d806:: with SMTP id a6mr30519003plz.172.1546104382158; Sat, 29 Dec 2018 09:26:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546104382; cv=none; d=google.com; s=arc-20160816; b=F1mwG7szgqxt/FZ4Mdz2ZVfzdtfP+x1bVh5j/t/75/Cd3TPGbv4aCg0lHKG3ns1Gi0 ce2jzQ+vXg06XM44W0Qq9vJti/qp9Xhre7EgG6dBP9aayx8070+q1ZnXt5J84Fxti/rV hRozFcOlhknmrQT3EwQ+2HW6bVseYbMYzukO5IyE9yV2HG2CU/r8xJVIgusgukaETMlI JIDXofAjg9C893oWuPVUNYtvB/DJgF0pZnCik0T1WPQmnyCHvuaqNPTdNlauQrIR0AVm tglr4LKneDsCS6b5bATTwvnD1OGAWqs/JCkQkVEmLczTT0s3p5qSYCJQnsbe0oqy+46x 3fXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date; bh=ypG4dABJ0uddk6BUYaCmn5ulaAsBQSzgSlQ6OCRVue4=; b=qGy/qVjCZZ3SvmLEMeeaydjzFUyAMe7vLkL5KRUPeZIlW24Qgx8Fr+h8mSafYViVLa 8v5P0ORkTaaNf8+VoErNUleGe4R1TRXWjGffooSFHYt9S0D9xDgPsMWz5l0XQJB2zu+n 4rQZuYGf/oUlry5Y6xNv7S7RU2LPyp5NUEaAHF1AmyokxzI5dJFdRZ5+StHR8htaiwmb SHGQP0rH2ml6Wso2EzT9hkgYs649GnGKCR5aTuxyixhs2q/aPy9vOHsaZPWq0Ulwa8B/ TGrIDcmMDvFQa00jKj+0ziM3VSiK1mv4zFvbrflfKBiomOFqSbhG6yeuTmU+lkP4sTzo 53LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si21884685pln.368.2018.12.29.09.25.44; Sat, 29 Dec 2018 09:26:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbeL2F73 (ORCPT + 99 others); Sat, 29 Dec 2018 00:59:29 -0500 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:60371 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbeL2F73 (ORCPT ); Sat, 29 Dec 2018 00:59:29 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1257284|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03276;MF=fuyao@allwinnertech.com;NM=1;PH=DS;RN=1;RT=1;SR=0;TI=SMTPD_---.DectfAK_1546063165; Received: from localhost(mailfrom:fuyao@allwinnertech.com fp:SMTPD_---.DectfAK_1546063165) by smtp.aliyun-inc.com(10.194.98.226); Sat, 29 Dec 2018 13:59:26 +0800 Date: Sat, 29 Dec 2018 13:59:25 +0800 From: fuyao To: linux-kernel@vger.kernel.org Subject: [PATCH] power_suuupy: change brace's place Message-ID: <20181229055925.GA12884@AExdroid03> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --- drivers/power/supply/power_supply_sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c index 5204f115970f..be1577e96c59 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -75,7 +75,8 @@ static const char * const power_supply_scope_text[] = { static ssize_t power_supply_show_property(struct device *dev, struct device_attribute *attr, - char *buf) { + char *buf) +{ ssize_t ret = 0; struct power_supply *psy = dev_get_drvdata(dev); const ptrdiff_t off = attr - power_supply_attrs; -- 2.19.1