Commit 343d8c60 authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller
Browse files

net: clean up codestyle for net/ipv4



This is a pure codestyle cleanup patch. Also add a blank line after
declarations as warned by checkpatch.pl.

Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fdf1923b
Loading
Loading
Loading
Loading
+19 −16
Original line number Diff line number Diff line
@@ -496,16 +496,19 @@ void ip_options_undo(struct ip_options *opt)
{
	if (opt->srr) {
		unsigned char *optptr = opt->__data + opt->srr - sizeof(struct iphdr);

		memmove(optptr + 7, optptr + 3, optptr[1] - 7);
		memcpy(optptr + 3, &opt->faddr, 4);
	}
	if (opt->rr_needaddr) {
		unsigned char *optptr = opt->__data + opt->rr - sizeof(struct iphdr);

		optptr[2] -= 4;
		memset(&optptr[optptr[2] - 1], 0, 4);
	}
	if (opt->ts) {
		unsigned char *optptr = opt->__data + opt->ts - sizeof(struct iphdr);

		if (opt->ts_needtime) {
			optptr[2] -= 4;
			memset(&optptr[optptr[2] - 1], 0, 4);
+1 −1

File changed.

Contains only whitespace changes.

+3 −3

File changed.

Contains only whitespace changes.