IIO: industrialio-core: Checking NULL instead of IS_ERR for debugfs_create_dir()
authorAxel Lin <axel.lin@gmail.com>
Thu, 3 May 2012 14:56:58 +0000 (22:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2012 23:04:11 +0000 (16:04 -0700)
commitabd5a2fb3957b5a6eb8083044a61e1b95b770abf
tree33c16b6cada866cb61b595dab1d113035d255719
parent5a28c87397655cb0d791d04e45bd7cd5691ba0f2
IIO: industrialio-core: Checking NULL instead of IS_ERR for debugfs_create_dir()

If defined CONFIG_DEBUG_FS, debugfs_create_dir returns NULL on failure.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/industrialio-core.c