From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034568AbcJ2OHR (ORCPT ); Sat, 29 Oct 2016 10:07:17 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36748 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S943191AbcJ2NyJ (ORCPT ); Sat, 29 Oct 2016 09:54:09 -0400 Date: Sat, 29 Oct 2016 18:53:13 +0300 From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 1/4] proc: just list_del() struct pde_opener Message-ID: <20161029155313.GA1246@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org list_del_init() is too much, structure will be freed in three lines anyway. Signed-off-by: Alexey Dobriyan --- fs/proc/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -152,7 +152,7 @@ static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo) file = pdeo->file; pde->proc_fops->release(file_inode(file), file); spin_lock(&pde->pde_unload_lock); - list_del_init(&pdeo->lh); + list_del(&pdeo->lh); if (pdeo->c) complete(pdeo->c); kfree(pdeo);