Skip to content

Commit

Permalink
[NET]: Kill double initialization in sock_alloc_inode.
Browse files Browse the repository at this point in the history
No need to set ei->socket.flags to zero twice.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 22, 2006
1 parent bf0d524 commit 1e38bb3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1e38bb3

Please sign in to comment.