[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120104.144318.1141715284599085189.davem@davemloft.net>
Date: Wed, 04 Jan 2012 14:43:18 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: nhorman@...driver.com
Cc: netdev@...r.kernel.org, yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH] ipv6: Check RA for sllao when configuring optimistic
ipv6 address
From: Neil Horman <nhorman@...driver.com>
Date: Wed, 4 Jan 2012 11:47:23 -0500
> +extern void addrconf_prefix_rcv(struct net_device *dev,
> + u8 *opt, int len, void *sllao);
You're not going to dereference or inspect 'sllao' otherwise you'd
give it a more appropriate type. You just care if it was present or
not.
So why not just make 'sllao' a "bool" and the argument passed as the
test "X != NULL"?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists