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 <phil@nwl.cc>
This commit is contained in:
parent
8579a398c5
commit
2869262144
|
|
@ -202,8 +202,6 @@ static int ipntable_modify(int cmd, int flags, int argc, char **argv)
|
||||||
if (get_u32(&queue, *argv, 0))
|
if (get_u32(&queue, *argv, 0))
|
||||||
invarg("\"queue\" value is invalid", *argv);
|
invarg("\"queue\" value is invalid", *argv);
|
||||||
|
|
||||||
if (!parms_rta)
|
|
||||||
parms_rta = (struct rtattr *)&parms_buf;
|
|
||||||
rta_addattr32(parms_rta, sizeof(parms_buf),
|
rta_addattr32(parms_rta, sizeof(parms_buf),
|
||||||
NDTPA_QUEUE_LEN, queue);
|
NDTPA_QUEUE_LEN, queue);
|
||||||
parms_change = 1;
|
parms_change = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue