ipv4: fix checkpatch error "space prohibited"
Signed-off-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>wifi-calibration
parent
a22318e83b
commit
0c9a67d2ed
|
@ -227,7 +227,7 @@ static int addr_compare(const struct inetpeer_addr *a,
|
||||||
stackptr = _stack; \
|
stackptr = _stack; \
|
||||||
*stackptr++ = &_base->root; \
|
*stackptr++ = &_base->root; \
|
||||||
for (u = rcu_deref_locked(_base->root, _base); \
|
for (u = rcu_deref_locked(_base->root, _base); \
|
||||||
u != peer_avl_empty; ) { \
|
u != peer_avl_empty;) { \
|
||||||
int cmp = addr_compare(_daddr, &u->daddr); \
|
int cmp = addr_compare(_daddr, &u->daddr); \
|
||||||
if (cmp == 0) \
|
if (cmp == 0) \
|
||||||
break; \
|
break; \
|
||||||
|
@ -282,7 +282,7 @@ static struct inet_peer *lookup_rcu(const struct inetpeer_addr *daddr,
|
||||||
*stackptr++ = &start->avl_left; \
|
*stackptr++ = &start->avl_left; \
|
||||||
v = &start->avl_left; \
|
v = &start->avl_left; \
|
||||||
for (u = rcu_deref_locked(*v, base); \
|
for (u = rcu_deref_locked(*v, base); \
|
||||||
u->avl_right != peer_avl_empty_rcu; ) { \
|
u->avl_right != peer_avl_empty_rcu;) { \
|
||||||
v = &u->avl_right; \
|
v = &u->avl_right; \
|
||||||
*stackptr++ = v; \
|
*stackptr++ = v; \
|
||||||
u = rcu_deref_locked(*v, base); \
|
u = rcu_deref_locked(*v, base); \
|
||||||
|
|
|
@ -461,14 +461,14 @@ static unsigned char asn1_oid_decode(struct asn1_ctx *ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subid < 40) {
|
if (subid < 40) {
|
||||||
optr [0] = 0;
|
optr[0] = 0;
|
||||||
optr [1] = subid;
|
optr[1] = subid;
|
||||||
} else if (subid < 80) {
|
} else if (subid < 80) {
|
||||||
optr [0] = 1;
|
optr[0] = 1;
|
||||||
optr [1] = subid - 40;
|
optr[1] = subid - 40;
|
||||||
} else {
|
} else {
|
||||||
optr [0] = 2;
|
optr[0] = 2;
|
||||||
optr [1] = subid - 80;
|
optr[1] = subid - 80;
|
||||||
}
|
}
|
||||||
|
|
||||||
*len = 2;
|
*len = 2;
|
||||||
|
|
|
@ -121,7 +121,7 @@ static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr,
|
||||||
cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq;
|
cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq;
|
||||||
|
|
||||||
/* Cookie is now reduced to (count * 2^24) ^ (hash % 2^24) */
|
/* Cookie is now reduced to (count * 2^24) ^ (hash % 2^24) */
|
||||||
diff = (count - (cookie >> COOKIEBITS)) & ((__u32) - 1 >> COOKIEBITS);
|
diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS);
|
||||||
if (diff >= MAX_SYNCOOKIE_AGE)
|
if (diff >= MAX_SYNCOOKIE_AGE)
|
||||||
return (__u32)-1;
|
return (__u32)-1;
|
||||||
|
|
||||||
|
|
|
@ -214,9 +214,9 @@ static u32 tcp_yeah_ssthresh(struct sock *sk) {
|
||||||
if (yeah->doing_reno_now < TCP_YEAH_RHO) {
|
if (yeah->doing_reno_now < TCP_YEAH_RHO) {
|
||||||
reduction = yeah->lastQ;
|
reduction = yeah->lastQ;
|
||||||
|
|
||||||
reduction = min( reduction, max(tp->snd_cwnd>>1, 2U) );
|
reduction = min(reduction, max(tp->snd_cwnd>>1, 2U));
|
||||||
|
|
||||||
reduction = max( reduction, tp->snd_cwnd >> TCP_YEAH_DELTA);
|
reduction = max(reduction, tp->snd_cwnd >> TCP_YEAH_DELTA);
|
||||||
} else
|
} else
|
||||||
reduction = max(tp->snd_cwnd>>1, 2U);
|
reduction = max(tp->snd_cwnd>>1, 2U);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue