Browse Source

[NET]: Kill double initialization in sock_alloc_inode.

No need to set ei->socket.flags to zero twice.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 năm trước cách đây
mục cha
commit
1e38bb3a38
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      net/socket.c

+ 0 - 1
net/socket.c

@@ -254,7 +254,6 @@ static struct inode *sock_alloc_inode(struct super_block *sb)
 	ei->socket.ops = NULL;
 	ei->socket.sk = NULL;
 	ei->socket.file = NULL;
-	ei->socket.flags = 0;
 
 	return &ei->vfs_inode;
 }