public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7600a53
)
inode: remove dead socket checks
author
Alan Cox
<alan@linux.intel.com>
Sat, 20 Feb 2016 19:33:41 +0000
(19:33 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 20 Feb 2016 19:33:41 +0000
(19:33 +0000)
Kernel/inode.c
patch
|
blob
|
history
diff --git
a/Kernel/inode.c
b/Kernel/inode.c
index
ea7f89f
..
5c5fa2f
100644
(file)
--- a/
Kernel/inode.c
+++ b/
Kernel/inode.c
@@
-38,10
+38,8
@@
void readi(inoptr ino, uint8_t flag)
case F_SOCK:
#ifdef CONFIG_NET
- if (use_net_r()) {
- udata.u_count = sock_read(ino, flag);
- return;
- }
+ udata.u_count = sock_read(ino, flag);
+ break;
#endif
case F_PIPE:
ispipe = true;
@@
-150,10
+148,8
@@
void writei(inoptr ino, uint8_t flag)
#ifdef CONFIG_NET
case F_SOCK:
- if (use_net_w()) {
- udata.u_count = sock_write(ino, flag);
- break;
- }
+ udata.u_count = sock_write(ino, flag);
+ break;
#endif
case F_PIPE:
ispipe = true;