projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f9a093
)
Revert "net: return actual error on register_queue_kobjects"
author
David S. Miller
<davem@davemloft.net>
Fri, 20 Jun 2014 01:12:15 +0000
(18:12 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 20 Jun 2014 01:12:15 +0000
(18:12 -0700)
This reverts commit
d36a4f4b472334562b8e7252e35d3d770db83815
.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/net-sysfs.c
b/net/core/net-sysfs.c
index 5c1c1e526a2bf474389c49acc32f5e9fc1dd2016..1cac29ebb05ba5040c5ca0a9e90ff080a0b1ea76 100644
(file)
--- a/
net/core/net-sysfs.c
+++ b/
net/core/net-sysfs.c
@@
-1200,8
+1200,8
@@
static int register_queue_kobjects(struct net_device *net)
#ifdef CONFIG_SYSFS
net->queues_kset = kset_create_and_add("queues",
NULL, &net->dev.kobj);
- if (
IS_ERR(net->queues_kset)
)
- return
PTR_ERR(net->queues_kset)
;
+ if (
!net->queues_kset
)
+ return
-ENOMEM
;
real_rx = net->real_num_rx_queues;
#endif
real_tx = net->real_num_tx_queues;