Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb6e926e authored by Wang Yufen's avatar Wang Yufen Committed by David S. Miller
Browse files

ipv6:fix checkpatch errors with assignment in if condition

parent 1c8669e0
Loading
Loading
Loading
Loading
+9 −7
Original line number Original line Diff line number Diff line
@@ -504,12 +504,13 @@ static int ip6addrlbl_dump(struct sk_buff *skb, struct netlink_callback *cb)
	hlist_for_each_entry_rcu(p, &ip6addrlbl_table.head, list) {
	hlist_for_each_entry_rcu(p, &ip6addrlbl_table.head, list) {
		if (idx >= s_idx &&
		if (idx >= s_idx &&
		    net_eq(ip6addrlbl_net(p), net)) {
		    net_eq(ip6addrlbl_net(p), net)) {
			if ((err = ip6addrlbl_fill(skb, p,
			err = ip6addrlbl_fill(skb, p,
					      ip6addrlbl_table.seq,
					      ip6addrlbl_table.seq,
					      NETLINK_CB(cb->skb).portid,
					      NETLINK_CB(cb->skb).portid,
					      cb->nlh->nlmsg_seq,
					      cb->nlh->nlmsg_seq,
					      RTM_NEWADDRLABEL,
					      RTM_NEWADDRLABEL,
						   NLM_F_MULTI)) <= 0)
					      NLM_F_MULTI);
			if (err <= 0)
				break;
				break;
		}
		}
		idx++;
		idx++;
@@ -567,7 +568,8 @@ static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh)
		goto out;
		goto out;
	}
	}


	if (!(skb = nlmsg_new(ip6addrlbl_msgsize(), GFP_KERNEL))) {
	skb = nlmsg_new(ip6addrlbl_msgsize(), GFP_KERNEL);
	if (!skb) {
		ip6addrlbl_put(p);
		ip6addrlbl_put(p);
		return -ENOBUFS;
		return -ENOBUFS;
	}
	}