media: uvcvideo: drop error check of debugfs_create_dir()
No need check the return value of debugfs_create_dir() Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1573541519-28488-1-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
dcf5a2c390
Коммит
54ef0b39ec
|
@ -108,15 +108,7 @@ void uvc_debugfs_cleanup_stream(struct uvc_streaming *stream)
|
|||
|
||||
void uvc_debugfs_init(void)
|
||||
{
|
||||
struct dentry *dir;
|
||||
|
||||
dir = debugfs_create_dir("uvcvideo", usb_debug_root);
|
||||
if (IS_ERR_OR_NULL(dir)) {
|
||||
uvc_printk(KERN_INFO, "Unable to create debugfs directory\n");
|
||||
return;
|
||||
}
|
||||
|
||||
uvc_debugfs_root_dir = dir;
|
||||
uvc_debugfs_root_dir = debugfs_create_dir("uvcvideo", usb_debug_root);
|
||||
}
|
||||
|
||||
void uvc_debugfs_cleanup(void)
|
||||
|
|
Загрузка…
Ссылка в новой задаче