@@ -100,7 +100,7 @@ iface_test(struct rb_root *root, const char **iface)
100100 while (n ) {
101101 const char * d = iface_data (n );
102102 int res = ifname_compare (* iface , d );
103-
103+
104104 if (res < 0 )
105105 n = n -> rb_left ;
106106 else if (res > 0 )
@@ -118,7 +118,7 @@ iface_add(struct rb_root *root, const char **iface)
118118{
119119 struct rb_node * * n = & (root -> rb_node ), * p = NULL ;
120120 struct iface_node * d ;
121-
121+
122122 while (* n ) {
123123 char * ifname = iface_data (* n );
124124 int res = ifname_compare (* iface , ifname );
@@ -296,10 +296,10 @@ hash_netiface4_kadt(struct ip_set *set, const struct sk_buff *skb,
296296 if (opt -> cmdflags & IPSET_FLAG_PHYSDEV ) {
297297#ifdef CONFIG_BRIDGE_NETFILTER
298298 const struct nf_bridge_info * nf_bridge = skb -> nf_bridge ;
299-
299+
300300 if (!nf_bridge )
301301 return - EINVAL ;
302- data .iface = SRCDIR ? PHYSDEV (physindev ): PHYSDEV (physoutdev );
302+ data .iface = SRCDIR ? PHYSDEV (physindev ) : PHYSDEV (physoutdev );
303303 data .physdev = 1 ;
304304#else
305305 data .iface = NULL ;
@@ -350,7 +350,7 @@ hash_netiface4_uadt(struct ip_set *set, struct nlattr *tb[],
350350 if (tb [IPSET_ATTR_CIDR ]) {
351351 data .cidr = nla_get_u8 (tb [IPSET_ATTR_CIDR ]);
352352 if (!data .cidr )
353- return - IPSET_ERR_INVALID_CIDR ;
353+ return - IPSET_ERR_INVALID_CIDR ;
354354 }
355355
356356 if (tb [IPSET_ATTR_TIMEOUT ]) {
@@ -359,7 +359,7 @@ hash_netiface4_uadt(struct ip_set *set, struct nlattr *tb[],
359359 timeout = ip_set_timeout_uget (tb [IPSET_ATTR_TIMEOUT ]);
360360 }
361361
362- strcpy (iface , nla_data (tb [IPSET_ATTR_IFACE ]));
362+ strcpy (iface , nla_data (tb [IPSET_ATTR_IFACE ]));
363363 data .iface = iface ;
364364 ret = iface_test (& h -> rbtree , & data .iface );
365365 if (adt == IPSET_ADD ) {
@@ -372,8 +372,8 @@ hash_netiface4_uadt(struct ip_set *set, struct nlattr *tb[],
372372 return ret ;
373373
374374 if (tb [IPSET_ATTR_CADT_FLAGS ]) {
375- u32 flags = ip_set_get_h32 (tb [IPSET_ATTR_CADT_FLAGS ]);
376- if (flags & IPSET_FLAG_PHYSDEV )
375+ u32 cadt_flags = ip_set_get_h32 (tb [IPSET_ATTR_CADT_FLAGS ]);
376+ if (cadt_flags & IPSET_FLAG_PHYSDEV )
377377 data .physdev = 1 ;
378378 }
379379
@@ -559,10 +559,10 @@ hash_netiface6_kadt(struct ip_set *set, const struct sk_buff *skb,
559559 if (opt -> cmdflags & IPSET_FLAG_PHYSDEV ) {
560560#ifdef CONFIG_BRIDGE_NETFILTER
561561 const struct nf_bridge_info * nf_bridge = skb -> nf_bridge ;
562-
562+
563563 if (!nf_bridge )
564564 return - EINVAL ;
565- data .iface = SRCDIR ? PHYSDEV (physindev ): PHYSDEV (physoutdev );
565+ data .iface = SRCDIR ? PHYSDEV (physindev ) : PHYSDEV (physoutdev );
566566 data .physdev = 1 ;
567567#else
568568 data .iface = NULL ;
@@ -623,7 +623,7 @@ hash_netiface6_uadt(struct ip_set *set, struct nlattr *tb[],
623623 timeout = ip_set_timeout_uget (tb [IPSET_ATTR_TIMEOUT ]);
624624 }
625625
626- strcpy (iface , nla_data (tb [IPSET_ATTR_IFACE ]));
626+ strcpy (iface , nla_data (tb [IPSET_ATTR_IFACE ]));
627627 data .iface = iface ;
628628 ret = iface_test (& h -> rbtree , & data .iface );
629629 if (adt == IPSET_ADD ) {
@@ -636,8 +636,8 @@ hash_netiface6_uadt(struct ip_set *set, struct nlattr *tb[],
636636 return ret ;
637637
638638 if (tb [IPSET_ATTR_CADT_FLAGS ]) {
639- u32 flags = ip_set_get_h32 (tb [IPSET_ATTR_CADT_FLAGS ]);
640- if (flags & IPSET_FLAG_PHYSDEV )
639+ u32 cadt_flags = ip_set_get_h32 (tb [IPSET_ATTR_CADT_FLAGS ]);
640+ if (cadt_flags & IPSET_FLAG_PHYSDEV )
641641 data .physdev = 1 ;
642642 }
643643
0 commit comments