inode: remove dead socket checks
authorAlan Cox <alan@linux.intel.com>
Sat, 20 Feb 2016 19:33:41 +0000 (19:33 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 20 Feb 2016 19:33:41 +0000 (19:33 +0000)
Kernel/inode.c

index ea7f89f..5c5fa2f 100644 (file)
@@ -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;