Skip to content

Commit 2f152bf

Browse files
nathanchancegregkh
authored andcommitted
ppp: Adjust indentation into ppp_async_input
commit 08cbc75 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: 6722e78 ("[PPP]: handle misaligned accesses") Link: ClangBuiltLinux/linux#800 Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 05c3012 commit 2f152bf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/net/ppp/ppp_async.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -878,15 +878,15 @@ ppp_async_input(struct asyncppp *ap, const unsigned char *buf,
878878
skb = dev_alloc_skb(ap->mru + PPP_HDRLEN + 2);
879879
if (!skb)
880880
goto nomem;
881-
ap->rpkt = skb;
882-
}
883-
if (skb->len == 0) {
884-
/* Try to get the payload 4-byte aligned.
885-
* This should match the
886-
* PPP_ALLSTATIONS/PPP_UI/compressed tests in
887-
* process_input_packet, but we do not have
888-
* enough chars here to test buf[1] and buf[2].
889-
*/
881+
ap->rpkt = skb;
882+
}
883+
if (skb->len == 0) {
884+
/* Try to get the payload 4-byte aligned.
885+
* This should match the
886+
* PPP_ALLSTATIONS/PPP_UI/compressed tests in
887+
* process_input_packet, but we do not have
888+
* enough chars here to test buf[1] and buf[2].
889+
*/
890890
if (buf[0] != PPP_ALLSTATIONS)
891891
skb_reserve(skb, 2 + (buf[0] & 1));
892892
}

0 commit comments

Comments
 (0)