Skip to content
Commit 57647e6f authored by Zhengchao Shao's avatar Zhengchao Shao Committed by David S. Miller
Browse files

bonding: use IS_ERR instead of NULL check in bond_create_debugfs



Because debugfs_create_dir returns ERR_PTR, so IS_ERR should be used to
check whether the directory is successfully created.

Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e08190ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment