mic: Remove unneeded NULL check
debugfs_remove_recursive will do NULL check, so remove the redundant null check. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Link: https://lore.kernel.org/r/1578391235-603-1-git-send-email-vulab@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
caf82f727e
commit
e2f9d739b2
@@ -129,9 +129,6 @@ void mic_create_debug_dir(struct mic_device *mdev)
|
||||
*/
|
||||
void mic_delete_debug_dir(struct mic_device *mdev)
|
||||
{
|
||||
if (!mdev->dbg_dir)
|
||||
return;
|
||||
|
||||
debugfs_remove_recursive(mdev->dbg_dir);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user