mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
greybus: eliminate unneeded null check
Coccinelle points out that debugfs_remove_recursive() handles a null argument properly, so there's no need to check for NULL before making the call. I have verified this is true of the kernel we're now working with (arche-6.0). Signed-off-by: Alex Elder <[email protected]> Reviewed-by: Viresh Kumar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ebc9e3750d
commit
66394300c3
1 changed files with 1 additions and 2 deletions
|
|
@ -883,8 +883,7 @@ static int gb_camera_debugfs_init(struct gb_camera *gcam)
|
|||
|
||||
static void gb_camera_debugfs_cleanup(struct gb_camera *gcam)
|
||||
{
|
||||
if (gcam->debugfs.root)
|
||||
debugfs_remove_recursive(gcam->debugfs.root);
|
||||
debugfs_remove_recursive(gcam->debugfs.root);
|
||||
|
||||
vfree(gcam->debugfs.buffers);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue