From: Arend van Spriel Date: Wed, 23 May 2012 13:13:07 +0000 (+0200) Subject: debugfs: change parameter check in debugfs_remove() functions X-Git-Tag: v3.6-rc1~99^2~14^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a59d6293e5372d7c35212932e083e2a541151eff;p=pandora-kernel.git debugfs: change parameter check in debugfs_remove() functions The dentry parameter in debugfs_remove() and debugfs_remove_recursive() is checked being a NULL pointer. To make cleanup by callers easier this check is extended using the IS_ERR_OR_NULL macro instead because the debugfs_create_... functions can return a ERR_PTR() value. Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed