]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
tipc: Optimize tipc_node_has_active_links()
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 17 Aug 2010 11:00:12 +0000 (11:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2010 00:31:57 +0000 (17:31 -0700)
commit76ae0d71d839b365faa7fdca0eec85a6d1a20d95
treed312821b3933522f18241eb313302fe8d723780f
parent96d841b7038b8091af3530a008793f5577337d3a
tipc: Optimize tipc_node_has_active_links()

Eliminate unnecessary checking for null node pointer and redundant
check of second active link array entry.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/node.c