Skip to content
Commit 44216827 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Boris Brezillon
Browse files

mtd: nand: nandsim: fix error check



debugfs_create_dir() and debugfs_create_file() returns NULL on error or
a pointer on success. They do not return the error value with ERR_PTR.
So we should not check the return with IS_ERR_OR_NULL, instead we
should just check for NULL.

Signed-off-by: default avatarSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 37871abd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment