diff options
author | Jinjie Ruan <[email protected]> | 2023-10-07 16:43:39 +0800 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2023-10-13 11:33:22 +0200 |
commit | 32ec99f872aba071a070f61fcab2f3a068b50652 (patch) | |
tree | 600e03a6fc580607d0eca128b9736b6812c61ed7 /scripts/gdb/linux | |
parent | faaed02abfa941f33a87dc6eacbd015af9ab3cfa (diff) |
media: aspeed: Drop unnecessary error check for debugfs_create_file()
debugfs_create_file() return ERR_PTR and never return NULL.
When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.
Fixes: 52fed10ad756 ("media: aspeed: add debugfs")
Signed-off-by: Jinjie Ruan <[email protected]>
Suggested-by: Hans Verkuil <[email protected]>
Reviewed-by: Eddie James <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions