diff options
author | Osama Muhammad <osmtendev@gmail.com> | 2023-05-30 20:42:52 +0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2023-08-14 11:14:42 +0200 |
commit | 9620a78fd1d3a0bab4ff78a97d54f6a976898eaa (patch) | |
tree | 09dc91989c2267802ef79a536a554d4ea97d8555 /drivers/fpga/altera-fpga2sdram.c | |
parent | 1d7546042f8fdc4bc39ab91ec966203e2d64f8bd (diff) |
HID: hid-wiimote-debug.c: Drop error checking for debugfs_create_file
This patch removes the error checking for debugfs_create_file
in hid-wiimote-debug.c.c. This is because the debugfs_create_file()
does not return NULL but an ERR_PTR after an error.
The DebugFS kernel API is developed in a way that the
caller can safely ignore the errors that occur during
the creation of DebugFS nodes.The debugfs Api handles
it gracefully. The check is unnecessary.
Link to the comment above debugfs_create_file:
https://elixir.bootlin.com/linux/latest/source/fs/debugfs/inode.c#L451
Signed-off-by: Osama Muhammad <osmtendev@gmail.com>
Reviewed-by: David Rheinsberg <david@readahead.eu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions