Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304552
b: refs/heads/master
c: abd5a2f
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Greg Kroah-Hartman committed May 8, 2012
1 parent eae1d7c commit 800aa23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a28c87397655cb0d791d04e45bd7cd5691ba0f2
refs/heads/master: abd5a2fb3957b5a6eb8083044a61e1b95b770abf
5 changes: 1 addition & 4 deletions trunk/drivers/iio/industrialio-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,12 @@ static int iio_device_register_debugfs(struct iio_dev *indio_dev)
if (indio_dev->info->debugfs_reg_access == NULL)
return 0;

if (IS_ERR(iio_debugfs_dentry))
if (!iio_debugfs_dentry)
return 0;

indio_dev->debugfs_dentry =
debugfs_create_dir(dev_name(&indio_dev->dev),
iio_debugfs_dentry);
if (IS_ERR(indio_dev->debugfs_dentry))
return PTR_ERR(indio_dev->debugfs_dentry);

if (indio_dev->debugfs_dentry == NULL) {
dev_warn(indio_dev->dev.parent,
"Failed to create debugfs directory\n");
Expand Down

0 comments on commit 800aa23

Please sign in to comment.