From 54273181bf31f2ac783f7a8a7b4dab74c4e262b9 Mon Sep 17 00:00:00 2001 From: Richard Aas Date: Tue, 21 Jun 2011 07:15:11 +0000 Subject: [PATCH] linux/route: set but unused variable --- src/net/linux/rt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/net/linux/rt.c b/src/net/linux/rt.c index e76ed37..1d37ba8 100644 --- a/src/net/linux/rt.c +++ b/src/net/linux/rt.c @@ -188,7 +188,6 @@ int net_rt_list(net_rt_h *rth, void *arg) struct nlmsghdr msg[1]; } u; struct nlmsghdr *nlmsg; - struct rtmsg *rtmsg; int sock, len, seq = 0, err = 0; if (!rth) @@ -205,7 +204,6 @@ int net_rt_list(net_rt_h *rth, void *arg) /* point the header and the msg structure pointers into the buffer */ nlmsg = u.msg; - rtmsg = (struct rtmsg *)NLMSG_DATA(nlmsg); /* Fill in the nlmsg header*/ nlmsg->nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));