|
|
36cfb7 |
From d62d2ffc71194068af509ec3285ecd6823d883fb Mon Sep 17 00:00:00 2001
|
|
|
36cfb7 |
From: Andrea Claudi <aclaudi@redhat.com>
|
|
|
36cfb7 |
Date: Mon, 29 Apr 2019 20:07:22 +0200
|
|
|
36cfb7 |
Subject: [PATCH] ipntable: No need to check and assign to parms_rta
|
|
|
36cfb7 |
|
|
|
36cfb7 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1465646
|
|
|
36cfb7 |
Upstream Status: iproute2.git commit 2869262144271
|
|
|
36cfb7 |
|
|
|
36cfb7 |
commit 28692621442710f4a67fe33742f56efc582ee33a
|
|
|
36cfb7 |
Author: Phil Sutter <phil@nwl.cc>
|
|
|
36cfb7 |
Date: Thu Aug 17 19:09:26 2017 +0200
|
|
|
36cfb7 |
|
|
|
36cfb7 |
ipntable: No need to check and assign to parms_rta
|
|
|
36cfb7 |
|
|
|
36cfb7 |
This variable is initialized at declaration and nowhere else does any
|
|
|
36cfb7 |
assignment to it happen, so just drop the check.
|
|
|
36cfb7 |
|
|
|
36cfb7 |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
36cfb7 |
---
|
|
|
36cfb7 |
ip/ipntable.c | 2 --
|
|
|
36cfb7 |
1 file changed, 2 deletions(-)
|
|
|
36cfb7 |
|
|
|
36cfb7 |
diff --git a/ip/ipntable.c b/ip/ipntable.c
|
|
|
36cfb7 |
index 65063321c85f8..ae8c74ead2cb8 100644
|
|
|
36cfb7 |
--- a/ip/ipntable.c
|
|
|
36cfb7 |
+++ b/ip/ipntable.c
|
|
|
36cfb7 |
@@ -202,8 +202,6 @@ static int ipntable_modify(int cmd, int flags, int argc, char **argv)
|
|
|
36cfb7 |
if (get_u32(&queue, *argv, 0))
|
|
|
36cfb7 |
invarg("\"queue\" value is invalid", *argv);
|
|
|
36cfb7 |
|
|
|
36cfb7 |
- if (!parms_rta)
|
|
|
36cfb7 |
- parms_rta = (struct rtattr *)&parms_buf;
|
|
|
36cfb7 |
rta_addattr32(parms_rta, sizeof(parms_buf),
|
|
|
36cfb7 |
NDTPA_QUEUE_LEN, queue);
|
|
|
36cfb7 |
parms_change = 1;
|
|
|
36cfb7 |
--
|
|
|
e138d9 |
2.21.0
|
|
|
36cfb7 |
|