Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4333403pxj; Tue, 25 May 2021 05:48:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4ZeujibEfELTFyMpUxHqduerM3vK+kX+wYzlTpOMuuXlqwNGGSqcG/WOu8W5jsPmuLJID X-Received: by 2002:a05:6402:5188:: with SMTP id q8mr9224134edd.166.1621946905537; Tue, 25 May 2021 05:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621946905; cv=none; d=google.com; s=arc-20160816; b=ltO6DZMlfPpl4AzCcD+wxWhs+O3pjhVD0VdNTJ84tpOP82N0yil4bWgK5T0Napv+Rq 5xpex2au1s9VrFVOJ4s/sa43WdMAwmk+xosGrkpCfQTo/6vrjfkDDZCd2BSTBdA17eZo 2vHlC4+ne2my6mIRmYnmYVhHnqTayJs/8EEIEbPRKqmt6bHLvoKT0D/L/5QuOOQWVXEg nXfJwmxPtE8nXtZRivtS/N7rQ35K5uLv3geiqUiSdMEC0H7PnNW+EOUjIYk3UJDlWOXM N/F/9b8QToIFhMfK7KjlghMXFyyl9ar5uZufuqUh/Jd52kJNHGq+AI603EFmm4Cshee9 tdTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=BAsSn0QqqS827pEDp2tUmlZZNLwNBxRbKX1OInU2lIM=; b=Xu+QGALYMFPbZsz85qsofHNSjNNZjeX5OBmomFzgGXp2R/5Z+GeHh5Vxaarl5tg/Yk Z+BlGx1+gVgmk+FRMWEcWJjtcZnMHPDBUmL3yPPVSLU36xEDTUyyvUko+6DF7l8CvNf5 cX+SeiUv3lhDTEQVNRTxOP2k1H4UjMOq3KGl1kT3VCKk7BEiym96CfurKSf72mupzhXx ixO+3boCnJMIysneuwupyXyL1WMyq0C2YsWE5OinxDlbMEoUacZUoQz4XJrgUdtzl6L2 2YHCw/kqwkbd+re9e2KjDwq+4ewPFyQ70AOeG4Q8mbuufT2Zf8r0MOqzC0Mvh2QedbP4 T8ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y1C3Js3M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si15669001ejy.320.2021.05.25.05.48.02; Tue, 25 May 2021 05:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y1C3Js3M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232720AbhEYMrn (ORCPT + 99 others); Tue, 25 May 2021 08:47:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:29322 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232222AbhEYMrh (ORCPT ); Tue, 25 May 2021 08:47:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621946767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BAsSn0QqqS827pEDp2tUmlZZNLwNBxRbKX1OInU2lIM=; b=Y1C3Js3MVc6gBf82pWGNt0iQsh10gpABJ3zE9SrEtBtFu317TRF+3syR4GiQb5IfmB+4Rn kRCLpqdNdXRaK3mBaKW3KsO75eSDfvlZ6MNxucSThE6DSExeR5Iw0lPBSLSKboCOzIIzil BA3jOcpomNmmE5wHR0iazmKw0E7IhzE= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-350-bcvHTPzwNpCPpdE7rkJUew-1; Tue, 25 May 2021 08:46:06 -0400 X-MC-Unique: bcvHTPzwNpCPpdE7rkJUew-1 Received: by mail-ej1-f72.google.com with SMTP id eb10-20020a170907280ab02903d65bd14481so8437488ejc.21 for ; Tue, 25 May 2021 05:46:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BAsSn0QqqS827pEDp2tUmlZZNLwNBxRbKX1OInU2lIM=; b=iXFm2lDI6WctPCybHCx0XvcmbisgFBBKV9pphfm658xjKnTd8gNlu896WELRNlkJLE Rc2HfXDscc6JROrYK4Nf0kYtf/3By2hIF5DvdHvyaPkxyjp1t39S6+eHMHlrCsSyR7+R 2o3QokANLFbsu/2mzWvAKtHIGGxvRJVvrxhRDIko+oLNctB5HXb5rPzrdgKikRX6+bZl TmQW0heaU7HO+eoSGpUJVU84ntPKXeiV6moV5P3dtWWXzqM4hXDGkuvqc8D9jZvRcRQR YmfVu7hJbBq+qChxNyOHVtlgAc5Ro9hG6+b2RpXvYo/sSF8L6BgsGFXgNdblgvDkXoLz vXCA== X-Gm-Message-State: AOAM5338zebGZImH4C0RSUHlDpMaRsndej9DtnvIzR7E0mfS0wtdhscC k5LrMd9jx0oixVG/rLnHw9RqFdLRjns6hksRQ3JPNTdyS4+M1niOaHosmtU33KqB1WKkTbNNbXu A79X797vRegwt7Sfjfy76ftUU X-Received: by 2002:a17:906:914d:: with SMTP id y13mr28396471ejw.489.1621946764867; Tue, 25 May 2021 05:46:04 -0700 (PDT) X-Received: by 2002:a17:906:914d:: with SMTP id y13mr28396455ejw.489.1621946764680; Tue, 25 May 2021 05:46:04 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id q18sm10517988edd.3.2021.05.25.05.46.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 May 2021 05:46:04 -0700 (PDT) Subject: Re: [PATCH v2] platform/x86: thinkpad_acpi: Fix inconsistent indenting To: Jiapeng Chong , hmh@hmh.eng.br Cc: mgross@linux.intel.com, jdelvare@suse.com, linux@roeck-us.net, ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org References: <1621837438-70790-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Hans de Goede Message-ID: <86bee518-cf29-f1b1-c1fc-b939f418be84@redhat.com> Date: Tue, 25 May 2021 14:46:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <1621837438-70790-1-git-send-email-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 5/24/21 8:23 AM, Jiapeng Chong wrote: > Eliminate the follow smatch warning: > > drivers/platform/x86/thinkpad_acpi.c:7942 volume_write() warn: > inconsistent indenting. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > Changes in v2: > -For the follow advice: https://lore.kernel.org/patchwork/patch/1434215/ > > drivers/platform/x86/thinkpad_acpi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c > index dd60c93..b7fec1b 100644 > --- a/drivers/platform/x86/thinkpad_acpi.c > +++ b/drivers/platform/x86/thinkpad_acpi.c > @@ -7938,7 +7938,7 @@ static int volume_write(char *buf) > continue; > } else if (sscanf(cmd, "level %u", &l) == 1 && > l >= 0 && l <= TP_EC_VOLUME_MAX) { > - new_level = l; > + new_level = l; > continue; > } > } >