netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: remove useless if check from register_netdevice()
@ 2014-02-12  7:45 Denis Kirjanov
  2014-02-12  8:20 ` Ding Tianhong
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Denis Kirjanov @ 2014-02-12  7:45 UTC (permalink / raw)
  To: davem, netdev; +Cc: Denis Kirjanov

remove useless if check from register_netdevice()

Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
---
 net/core/dev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 4ad1b78..4be9a37 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5876,8 +5876,7 @@ int register_netdevice(struct net_device *dev)
 	if (dev->netdev_ops->ndo_init) {
 		ret = dev->netdev_ops->ndo_init(dev);
 		if (ret) {
-			if (ret > 0)
-				ret = -EIO;
+            ret = -EIO;
 			goto out;
 		}
 	}
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-12 14:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-12  7:45 [PATCH net-next] net: remove useless if check from register_netdevice() Denis Kirjanov
2014-02-12  8:20 ` Ding Tianhong
2014-02-12  8:24 ` Ding Tianhong
2014-02-12  8:47   ` Denis Kirjanov
2014-02-12 14:46 ` David Miller
2014-02-12 14:51   ` Denis Kirjanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).