ppp: Adjust indentation into ppp_async_input
commit08cbc75f96
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:6722e78c90
("[PPP]: handle misaligned accesses") Link: https://github.com/ClangBuiltLinux/linux/issues/800 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bd1bac782d
commit
761b514092
|
@ -874,15 +874,15 @@ ppp_async_input(struct asyncppp *ap, const unsigned char *buf,
|
||||||
skb = dev_alloc_skb(ap->mru + PPP_HDRLEN + 2);
|
skb = dev_alloc_skb(ap->mru + PPP_HDRLEN + 2);
|
||||||
if (!skb)
|
if (!skb)
|
||||||
goto nomem;
|
goto nomem;
|
||||||
ap->rpkt = skb;
|
ap->rpkt = skb;
|
||||||
}
|
}
|
||||||
if (skb->len == 0) {
|
if (skb->len == 0) {
|
||||||
/* Try to get the payload 4-byte aligned.
|
/* Try to get the payload 4-byte aligned.
|
||||||
* This should match the
|
* This should match the
|
||||||
* PPP_ALLSTATIONS/PPP_UI/compressed tests in
|
* PPP_ALLSTATIONS/PPP_UI/compressed tests in
|
||||||
* process_input_packet, but we do not have
|
* process_input_packet, but we do not have
|
||||||
* enough chars here to test buf[1] and buf[2].
|
* enough chars here to test buf[1] and buf[2].
|
||||||
*/
|
*/
|
||||||
if (buf[0] != PPP_ALLSTATIONS)
|
if (buf[0] != PPP_ALLSTATIONS)
|
||||||
skb_reserve(skb, 2 + (buf[0] & 1));
|
skb_reserve(skb, 2 + (buf[0] & 1));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue