]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Revert "HID: debug: Check result of debugfs_create_dir() and debugfs_create_file()"
authorJiri Kosina <jkosina@suse.cz>
Tue, 29 Sep 2015 10:05:44 +0000 (12:05 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 29 Sep 2015 10:05:44 +0000 (12:05 +0200)
commit7184d24f3584b86c3ff5d01875d70618043001ab
tree7f86a4e3712ee70d772168abf7598a8009d9317d
parenta0ff81f9f6a88af3867873113ddfb355d8de4c95
Revert "HID: debug: Check result of debugfs_create_dir() and debugfs_create_file()"

This reverts commit 9c537bf6cad4782573d873674a267c7cdc842ac9.

Coccinelle reports:

NULL check before freeing functions like kfree, debugfs_remove,
debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider
reorganizing relevant code to avoid passing NULL values.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
drivers/hid/hid-core.c
drivers/hid/hid-debug.c