Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3698154ybv; Mon, 10 Feb 2020 04:55:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzMPWUnwma0nVTQOsxOT4k5Unus/ntgygL7efspL3hZ3oV7YT7NyoqyyP26XrFn/IdYPNPc X-Received: by 2002:a05:6830:9a:: with SMTP id a26mr956541oto.273.1581339358028; Mon, 10 Feb 2020 04:55:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581339358; cv=none; d=google.com; s=arc-20160816; b=jTMxezyQNH9rSTSx1SgUC6WaFE9r02S/BhqX2t4+Npxw12TeVkKSZyTy85znj/fxn7 Sla7oXtC2pHRTQ0Ac/Aokxv12TlOhbS3HiUOYc2dZVgBefagvfosKPpwbiHZvPPfu8Rf dlpn7yLx20BFgl69dEfWeZqPAkGqcCuOcPUectpJnKSMC5BERfzjTHdrIo6JTo2B/KuA +Hfgko0hgpx56mFACxQ9F/Q6bPKRwNIMMJJ+veNpqbyBqbAk6PaHwu7EcvpkowiqhfMm 3LTdEUPe+7174Zg9DRZAXqTycX47dnb9otW3+SOTHdWbh0Sk3PuycnCYD04Fb2G63pqS awvg== 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=V57JyggbMgVKpIcd4Fh0GtUhAKylgI2yHWQrfdBjoMM=; b=0RpgiHDL3mvkq2tyTYLgQLjQZKvZ205bgJUhwO9qcSYblQqPK/FUFMjxG+BKY2DDXf vQpP9rJCxsNDn/W+MopK86/zXZjWTVZtdSUH9E+IV5PHAiJ0ifx8pxRh/HHhlz+PukGy at3UqyqkgNG6tD26khrIPLDYovMQ+NKk9BFfIVe/iyBfgdJXuFh7Au/uKVifzwO/dWb0 hGq2qg4lIpoVJ/0TpWmaf3tRWtXVD494c1KtaFbzArTnycCdWKeTdLbWS5aGMyUlnA1X lnc+KUO6Lc1OjX3nqvlaNRq45pk+7JmKDYmYo5Xxmz4ywU7Z1aThiF5Nws8zBB7yj8Sb NSsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IDk+Ae6l; 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 q5si152280otc.104.2020.02.10.04.55.46; Mon, 10 Feb 2020 04:55:58 -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=IDk+Ae6l; 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 S1729934AbgBJMzg (ORCPT + 99 others); Mon, 10 Feb 2020 07:55:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:44818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728781AbgBJMls (ORCPT ); Mon, 10 Feb 2020 07:41:48 -0500 Received: from localhost (unknown [209.37.97.194]) (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 330C120873; Mon, 10 Feb 2020 12:41:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338507; bh=mpQr1aTIBLMCAZBmrzdcHGTPJq0LbkIE15rTxYRWisI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IDk+Ae6lgV4djkvz1q2u7AodylOiyuvHIX/8xGL4zXmczH51146oK56dSdFHCE1wK yhcFbnF37+SvtQIbObdwo47cB6OSAX71VpefKLZl0xCcp0SW0jmqpXMyq3JBA3HOCq xTxhdLwTn2QDNHDoCPjk+wtSGB/1U8TD1EkUNUIA= 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 5.5 291/367] ppp: Adjust indentation into ppp_async_input Date: Mon, 10 Feb 2020 04:33:24 -0800 Message-Id: <20200210122450.663408992@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@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 @@ -874,15 +874,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)); }