Re: [PATCH v2] drivers/hid: Check result of debugfs_create_dir() and debugfs_create_file()

2015-08-20 Thread Alexander Kuleshov
Hello Jiri, On 08-19-15, Jiri Kosina wrote: On Wed, 19 Aug 2015, Alexander Kuleshov wrote: - hid_debug_init(); + if (hid_debug) + hid_debug_init(); How is this change related to the rest of the patch? It's wrong anyway, because hid_debug is independent of the

Re: [PATCH v2] drivers/hid: Check result of debugfs_create_dir() and debugfs_create_file()

2015-08-19 Thread Jiri Kosina
On Wed, 19 Aug 2015, Alexander Kuleshov wrote: The debugfs_create_dir() and debugfs_create_file() functions may return -errno if an error occurs. This patch adds a couple of checks of the result of the debufs_create_dir() and debugfs_create_file() functions execution in the