Skip to contentSkip to conversation

Fix partial warnings of checkpatch.pl for ipx_route.c

PATCH In review Horatiu Vultur 2 participants 2 messages Mar 5, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix partial warnings of checkpatch.pl for ipx_route.c

Fix partial warnings of checkpatch.pl for ipx_route.c

---
 drivers/staging/ipx/ipx_route.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/staging/ipx/ipx_route.c +4 -3
index 3cf93aa9..bd26fbb 100644
@@ -71,8 +71,8 @@ int ipxrtr_add_route(__be32 network, struct ipx_interface *intrfc,
 			goto out_put;
 	}
 
-	rt->ir_net 	= network;
-	rt->ir_intrfc 	= intrfc;
+	rt->ir_net	= network;
+	rt->ir_intrfc	= intrfc;
 	if (!node) {
 		memset(rt->ir_router_node, '\0', IPX_NODE_LEN);
 		rt->ir_routed = 0;
@@ -207,7 +207,7 @@ int ipxrtr_route_packet(struct sock *sk, struct sockaddr_ipx *usipx,
 	ipx = ipx_hdr(skb);
 	ipx->ipx_pktsize = htons(len + sizeof(struct ipxhdr));
 	IPX_SKB_CB(skb)->ipx_tctrl = 0;
-	ipx->ipx_type 	 = usipx->sipx_type;
+	ipx->ipx_type	 = usipx->sipx_type;
 
 	IPX_SKB_CB(skb)->last_hop.index = -1;
 #ifdef CONFIG_IPX_INTERN
@@ -280,6 +280,7 @@ int ipxrtr_ioctl(unsigned int cmd, void __user *arg)
 		break;
 	case SIOCADDRT: {
 		struct ipx_route_definition f;
+
 		f.ipx_network		= st->sipx_network;
 		f.ipx_router_network	= sg->sipx_network;
 		memcpy(f.ipx_router_node, sg->sipx_node, IPX_NODE_LEN);
Signature · 6 lines
2.7.4

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel