From 28692621442710f4a67fe33742f56efc582ee33a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 17 Aug 2017 19:09:26 +0200 Subject: [PATCH] ipntable: No need to check and assign to parms_rta This variable is initialized at declaration and nowhere else does any assignment to it happen, so just drop the check. Signed-off-by: Phil Sutter --- ip/ipntable.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ip/ipntable.c b/ip/ipntable.c index 879626ee..1837909f 100644 --- a/ip/ipntable.c +++ b/ip/ipntable.c @@ -202,8 +202,6 @@ static int ipntable_modify(int cmd, int flags, int argc, char **argv) if (get_u32(&queue, *argv, 0)) invarg("\"queue\" value is invalid", *argv); - if (!parms_rta) - parms_rta = (struct rtattr *)&parms_buf; rta_addattr32(parms_rta, sizeof(parms_buf), NDTPA_QUEUE_LEN, queue); parms_change = 1;