diff options
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r-- | net/ipv6/proc.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 29c5a79444c2..70940b3654a1 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
@@ -186,20 +186,12 @@ static int sockstat6_seq_open(struct inode *inode, struct file *file) | |||
186 | return single_open_net(inode, file, sockstat6_seq_show); | 186 | return single_open_net(inode, file, sockstat6_seq_show); |
187 | } | 187 | } |
188 | 188 | ||
189 | static int sockstat6_seq_release(struct inode *inode, struct file *file) | ||
190 | { | ||
191 | struct net *net = ((struct seq_file *)file->private_data)->private; | ||
192 | |||
193 | put_net(net); | ||
194 | return single_release(inode, file); | ||
195 | } | ||
196 | |||
197 | static const struct file_operations sockstat6_seq_fops = { | 189 | static const struct file_operations sockstat6_seq_fops = { |
198 | .owner = THIS_MODULE, | 190 | .owner = THIS_MODULE, |
199 | .open = sockstat6_seq_open, | 191 | .open = sockstat6_seq_open, |
200 | .read = seq_read, | 192 | .read = seq_read, |
201 | .llseek = seq_lseek, | 193 | .llseek = seq_lseek, |
202 | .release = sockstat6_seq_release, | 194 | .release = single_release_net, |
203 | }; | 195 | }; |
204 | 196 | ||
205 | static int snmp6_seq_open(struct inode *inode, struct file *file) | 197 | static int snmp6_seq_open(struct inode *inode, struct file *file) |