* [PATCH] net/failover: remove redundant fops null check
@ 2020-08-09 2:17 Gaurav Singh
0 siblings, 0 replies; only message in thread
From: Gaurav Singh @ 2020-08-09 2:17 UTC (permalink / raw)
To: gaurav1086, Sridhar Samudrala, David S. Miller, Jakub Kicinski,
open list:FAILOVER MODULE, open list
Remove redundant fops null check
Fixes: 30c8bd5aa8b2c ("net: Introduce generic failover module")
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
---
net/core/failover.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/failover.c b/net/core/failover.c
index b5cd3c727285..63213347f51c 100644
--- a/net/core/failover.c
+++ b/net/core/failover.c
@@ -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;
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-09 2:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-09 2:17 [PATCH] net/failover: remove redundant fops null check Gaurav Singh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.