bonding: use IS_ERR instead of NULL check in bond_create_debugfs
authorZhengchao Shao <shaozhengchao@huawei.com>
Thu, 10 Aug 2023 13:50:04 +0000 (21:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2023 10:10:55 +0000 (11:10 +0100)
commit57647e6fdf174e3c84072a39d901036f867e4192
treeef64a69bba68aba8fe2c0e8cefed1f7d385649a5
parente08190ef514fd3c7e45826cd0d427d4133361192
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: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_debugfs.c