Re: [PATCH v2] checkpatch: debugfs_remove() can take NULL

2012-11-17 Thread Joe Perches
On Sat, 2012-11-17 at 16:36 +0200, Constantine Shulyupin wrote: > From: Constantine Shulyupin > > debugfs_remove() and debugfs_remove_recursive() can take a NULL, so let's > check and warn about that. > > Channegs since v1: > > - added debugfs_remove_recursivere > - all tests for pattenrs are

[PATCH v2] checkpatch: debugfs_remove() can take NULL

2012-11-17 Thread Constantine Shulyupin
From: Constantine Shulyupin debugfs_remove() and debugfs_remove_recursive() can take a NULL, so let's check and warn about that. Channegs since v1: - added debugfs_remove_recursive - all tests for pattenrs are "if (a) xxx(a)" are consolidates Signed-off-by: Constantine Shulyupin --- script