]> asedeno.scripts.mit.edu Git - linux.git/commit
media: uvcvideo: Remove unnecessary NULL check before debugfs_remove_recursive
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Sun, 12 Nov 2017 08:18:59 +0000 (03:18 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 11 Sep 2018 12:42:10 +0000 (08:42 -0400)
commit829682b3dba16120c3366d8eaef620a8a41e5fb8
treecf61202d9492fa01afa2c0e20746890e3c4ef2e3
parent52a4eb317c04b33564f26188acb53e6c967a1718
media: uvcvideo: Remove unnecessary NULL check before debugfs_remove_recursive

debugfs_remove_recursive() accepts a NULL parameter and returns
immediately, there's no need for a NULL check in the caller.

This issue was detected with the help of Coccinelle.

[Reword commit message, address uvc_debugfs_cleanup_stream()]

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/uvc/uvc_debugfs.c