media: uvcvideo: drop error check of debugfs_create_dir()
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Tue, 12 Nov 2019 06:51:47 +0000 (14:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Nov 2019 03:16:34 +0000 (11:16 +0800)
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>
drivers/media/usb/uvc/uvc_debugfs.c

index d2b1099..2b8af4b 100644 (file)
@@ -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)