From: David S. Miller Date: Thu, 10 Aug 2006 07:22:41 +0000 (-0700) Subject: [NET]: Kill double initialization in sock_alloc_inode. X-Git-Tag: v2.6.19-rc1~1272^2~288 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1e38bb3a38d08129d08c904b10ea3ba08e22d297;p=linux-2.6-omap-h63xx.git [NET]: Kill double initialization in sock_alloc_inode. No need to set ei->socket.flags to zero twice. Signed-off-by: David S. Miller --- diff --git a/net/socket.c b/net/socket.c index 4147fe4bf41..d6f27ed9ba6 100644 --- a/net/socket.c +++ b/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; }