Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp695856ybv; Thu, 13 Feb 2020 07:55:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzymt/Qgu2LEmOkGQu5/TlVxL4ppqmU5fxNVZDTJ1Dno23FAb9tNI+XeSXtoOSUTcqSYkmv X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr13603532otr.82.1581609344229; Thu, 13 Feb 2020 07:55:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581609344; cv=none; d=google.com; s=arc-20160816; b=Un0Ze9ydRWqNMVmXfYvHQizEs5fRZHfNKRCvjAxShY1u5YP4LvMXyuudA2AYED3wat I/v330fGNIgaUwkJ2Bv0gUQkpvrSvKx2m6A2X6o7n9quCbggZ9B9Htr/VMpy5urf/WSt bDVhv1xSkc7BgvRnOo8UHPcDx7JzZXwIgayLHjl8aCxFlurd3G3O4V5JS3097Kf0I3hT YQ3Hy0XqM3vZ/1ZFrEwbmSGrZ+lBfY+j0ERWtIGnVMlZpxv7zOsMUEUj5yQjc5mKJMST 5+XtEnGM9qTmY55LwfAUaZ8aajEgnNPXZN++06zxwPaVJNF7SjuVFpQiLCiUu4fL5szj ijWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ezq8Oxybc2HDOnDroQ0wvBJwNVX8lYtfJlWD9M8E7w4=; b=ErBMHUii7k/hh7DEcfGi3983/6yysxLbs4yzoyDQ9X5ksj/6LY7B9gyHHsdwO0CTyV mTf2WNNWBmW6lP+DZBFAtLj9O5/ne8/qQKAg2GjB6MYq1sMg5ixqjIGDKxztgd10e/9u E4bs4UZhqHxDwHDhVJaRSusFKeBVPjOLPubm421EB/I8Sryal5cT3At6RJEjlgPSonnb W+ds+bCVp5Eaf1mEHfISGdNR1fEmOpb8ch8IGQujgRrGMXUPWArS6YAKedXRVETFyMnh n7+542GEFZ2+9zkbJL3lGkrP9ZBAHZzfRU09HgwLW1fsxj0z2Vn3R0UPL3gvFVzP1Q4v rxyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="diOZUEQ/"; 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 l8si1255872oii.249.2020.02.13.07.55.32; Thu, 13 Feb 2020 07:55:44 -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; dkim=pass header.i=@kernel.org header.s=default header.b="diOZUEQ/"; 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 S1729045AbgBMPZi (ORCPT + 99 others); Thu, 13 Feb 2020 10:25:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:36562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387394AbgBMPYD (ORCPT ); Thu, 13 Feb 2020 10:24:03 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7F56124691; Thu, 13 Feb 2020 15:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607442; bh=wgQjZs1ddBRdFqlffXn/FGMRtYF9eRuUuRtsGAyWpRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=diOZUEQ/KR35p6RatyNcpEPo58RwAk5PSk39MTSwrdJtsGYM1w4qkAMnL/jbXTMkQ TOXYojUR5HefEgHZMyNyhh18a0HwP4VI5HRQbkVKA1Ey1FAdjfTpHLvqOX2zB/5WRh KnziuG7keqHjlTRXw0jLVMGCON1BBxaNg5wXO/o0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , "David S. Miller" Subject: [PATCH 4.9 064/116] ppp: Adjust indentation into ppp_async_input Date: Thu, 13 Feb 2020 07:20:08 -0800 Message-Id: <20200213151907.888503397@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151842.259660170@linuxfoundation.org> References: <20200213151842.259660170@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor commit 08cbc75f96029d3092664213a844a5e25523aa35 upstream. Clang warns: ../drivers/net/ppp/ppp_async.c:877:6: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] ap->rpkt = skb; ^ ../drivers/net/ppp/ppp_async.c:875:5: note: previous statement is here if (!skb) ^ 1 warning generated. This warning occurs because there is a space before the tab on this line. Clean up this entire block's indentation so that it is consistent with the Linux kernel coding style and clang no longer warns. Fixes: 6722e78c9005 ("[PPP]: handle misaligned accesses") Link: https://github.com/ClangBuiltLinux/linux/issues/800 Signed-off-by: Nathan Chancellor Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ppp/ppp_async.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) --- a/drivers/net/ppp/ppp_async.c +++ b/drivers/net/ppp/ppp_async.c @@ -878,15 +878,15 @@ ppp_async_input(struct asyncppp *ap, con skb = dev_alloc_skb(ap->mru + PPP_HDRLEN + 2); if (!skb) goto nomem; - ap->rpkt = skb; - } - if (skb->len == 0) { - /* Try to get the payload 4-byte aligned. - * This should match the - * PPP_ALLSTATIONS/PPP_UI/compressed tests in - * process_input_packet, but we do not have - * enough chars here to test buf[1] and buf[2]. - */ + ap->rpkt = skb; + } + if (skb->len == 0) { + /* Try to get the payload 4-byte aligned. + * This should match the + * PPP_ALLSTATIONS/PPP_UI/compressed tests in + * process_input_packet, but we do not have + * enough chars here to test buf[1] and buf[2]. + */ if (buf[0] != PPP_ALLSTATIONS) skb_reserve(skb, 2 + (buf[0] & 1)); }