Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: aspeed: Fix return value check in aspeed_video_debugfs_create()
In case of error, the function debugfs_create_file() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 52fed10 ("media: aspeed: add debugfs") Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
- Loading branch information