aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/usb/uvc
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2019-11-12 14:51:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-14 11:16:34 +0800
commit54ef0b39ec50e5274909ce0f66cbf2c8b00d2723 (patch)
tree63bacc307ba6469d5c5df79502207b7fd75cd7da /drivers/media/usb/uvc
parentusb: dwc3: create debugfs directory under usb root (diff)
downloadwireguard-linux-54ef0b39ec50e5274909ce0f66cbf2c8b00d2723.tar.xz
wireguard-linux-54ef0b39ec50e5274909ce0f66cbf2c8b00d2723.zip
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>
Diffstat (limited to 'drivers/media/usb/uvc')
-rw-r--r--drivers/media/usb/uvc/uvc_debugfs.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/media/usb/uvc/uvc_debugfs.c b/drivers/media/usb/uvc/uvc_debugfs.c
index d2b109959d82..2b8af4b54117 100644
--- a/drivers/media/usb/uvc/uvc_debugfs.c
+++ b/drivers/media/usb/uvc/uvc_debugfs.c
@@ -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)