From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Wed, 11 Feb 2015 13:10:34 +0100 Subject: [Cluster-devel] [PATCH] fs: dlm: lockspace.c: removal of unnecessary check before calling kfree() In-Reply-To: <1423646814-22720-1-git-send-email-baspeters93@gmail.com> References: <1423646814-22720-1-git-send-email-baspeters93@gmail.com> Message-ID: <54DB46BA.7020803@users.sourceforge.net> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > kfree() checks its argument. It is therefore unnecessary to do this twice. > > This issue was detected using Coccinelle. Would you like to integrate my update suggestion 'fs-DLM: Deletion of unnecessary checks before the function call "kfree"'? https://lkml.org/lkml/2014/11/29/88 http://article.gmane.org/gmane.linux.kernel/1840524 https://www.mail-archive.com/linux-kernel at vger.kernel.org/msg778279.html Regards, Markus