rtnl: Remove dead assignment
authorHenrique Dante de Almeida <hdante@profusion.mobi>
Tue, 8 May 2012 19:20:58 +0000 (16:20 -0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 9 May 2012 14:16:10 +0000 (17:16 +0300)
src/rtnl.c

index e53f5e8..1aaef29 100644 (file)
@@ -1189,7 +1189,7 @@ static const char **rtnl_nd_opt_dnssl(struct nd_opt_hdr *opt, guint32 *lifetime)
 static void rtnl_newnduseropt(struct nlmsghdr *hdr)
 {
        struct nduseroptmsg *msg = (struct nduseroptmsg *) NLMSG_DATA(hdr);
-       struct nd_opt_hdr *opt = (void *)&msg[1];
+       struct nd_opt_hdr *opt;
        guint32 lifetime = -1;
        const char **domains = NULL;
        struct in6_addr *servers = NULL;