ipv6: coding style improvements (remove assignment in if statements)
This change has no functional impact and simply addresses some coding style issues detected by checkpatch. Specifically this change adjusts "if" statements which also include the assignment of a variable. No changes to the resultant object files result as determined by objdiff. Signed-off-by: Ian Morris <ipm@chirality.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
78e2045d3d
commit
e5d08d718a
@@ -162,7 +162,8 @@ static void ndisc_fill_addr_option(struct sk_buff *skb, int type, void *data)
|
||||
memcpy(opt+2, data, data_len);
|
||||
data_len += 2;
|
||||
opt += data_len;
|
||||
if ((space -= data_len) > 0)
|
||||
space -= data_len;
|
||||
if (space > 0)
|
||||
memset(opt, 0, space);
|
||||
}
|
||||
|
||||
@@ -656,8 +657,8 @@ static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb)
|
||||
|
||||
if (skb && ipv6_chk_addr(dev_net(dev), &ipv6_hdr(skb)->saddr, dev, 1))
|
||||
saddr = &ipv6_hdr(skb)->saddr;
|
||||
|
||||
if ((probes -= NEIGH_VAR(neigh->parms, UCAST_PROBES)) < 0) {
|
||||
probes -= NEIGH_VAR(neigh->parms, UCAST_PROBES);
|
||||
if (probes < 0) {
|
||||
if (!(neigh->nud_state & NUD_VALID)) {
|
||||
ND_PRINTK(1, dbg,
|
||||
"%s: trying to ucast probe in NUD_INVALID: %pI6\n",
|
||||
|
Reference in New Issue
Block a user