mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
net: mpls: Remove duplicate variable from iterator macro
__nh is just a copy of nh with a different type. Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
688e075748
commit
69d9c0d077
@ -158,17 +158,16 @@ struct mpls_route { /* next hop label forwarding entry */
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define for_nexthops(rt) { \
|
#define for_nexthops(rt) { \
|
||||||
int nhsel; struct mpls_nh *nh; u8 *__nh; \
|
int nhsel; struct mpls_nh *nh; \
|
||||||
for (nhsel = 0, nh = (rt)->rt_nh, __nh = (u8 *)((rt)->rt_nh); \
|
for (nhsel = 0, nh = (rt)->rt_nh; \
|
||||||
nhsel < (rt)->rt_nhn; \
|
nhsel < (rt)->rt_nhn; \
|
||||||
__nh += rt->rt_nh_size, nh = (struct mpls_nh *)__nh, nhsel++)
|
nh = (void *)nh + (rt)->rt_nh_size, nhsel++)
|
||||||
|
|
||||||
#define change_nexthops(rt) { \
|
#define change_nexthops(rt) { \
|
||||||
int nhsel; struct mpls_nh *nh; u8 *__nh; \
|
int nhsel; struct mpls_nh *nh; \
|
||||||
for (nhsel = 0, nh = (struct mpls_nh *)((rt)->rt_nh), \
|
for (nhsel = 0, nh = (rt)->rt_nh; \
|
||||||
__nh = (u8 *)((rt)->rt_nh); \
|
|
||||||
nhsel < (rt)->rt_nhn; \
|
nhsel < (rt)->rt_nhn; \
|
||||||
__nh += rt->rt_nh_size, nh = (struct mpls_nh *)__nh, nhsel++)
|
nh = (void *)nh + (rt)->rt_nh_size, nhsel++)
|
||||||
|
|
||||||
#define endfor_nexthops(rt) }
|
#define endfor_nexthops(rt) }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user