Skip to content
Commit afcdb8e5 authored by Lv Ruyi's avatar Lv Ruyi Committed by Thierry Reding
Browse files

firmware: tegra: Fix error check return value of debugfs_create_file()



If an error occurs, debugfs_create_file() will return ERR_PTR(-ERROR),
so use IS_ERR() to check it.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarLv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent a4740b14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment