diff options
author | Lv Ruyi <lv.ruyi@zte.com.cn> | 2022-04-19 04:36:48 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-07-08 18:56:03 +0300 |
commit | afcdb8e55c91c6ff0700ab272fd0f74e899ab884 (patch) | |
tree | 37f07d437ab1727e87a2316fefc8fe221b00f0ff /drivers/scsi/sd.c | |
parent | a4740b148a04dc60e14fe6a1dfe216d3bae214fd (diff) | |
download | linux-afcdb8e55c91c6ff0700ab272fd0f74e899ab884.tar.xz |
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: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/scsi/sd.c')
0 files changed, 0 insertions, 0 deletions