Skip to contentSkip to conversation

net/failover: remove redundant fops null check

PATCH New Gaurav Singh 1 participant 1 message Aug 9, 2020

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

PATCH 1/1 net/failover: remove redundant fops null check

Remove redundant fops null check

Fixes 30c8bd5aa8b2c ("net: Introduce generic failover module")
---
 net/core/failover.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/failover.c +1 -1
index b5cd3c727285..63213347f51c 100644
@@ -82,7 +82,7 @@ static int failover_slave_register(struct net_device *slave_dev)
 
 	slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK);
 
-	if (fops && fops->slave_register &&
+	if (fops->slave_register &&
 	    !fops->slave_register(slave_dev, failover_dev))
 		return NOTIFY_OK;
 
Signature · 1 line
2.17.1