When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -136,7 +136,6 @@ struct aat2870_data { · 135 unmodified lines | ||
| 136 | 136 | |
| 137 | 137 | /* for debugfs */ |
| 138 | 138 | struct dentry *dentry_root; |
| 139 | − struct dentry *dentry_reg; | |
| 140 | 139 | }; |
| 141 | 140 | |
| 142 | 141 | struct aat2870_subdev_info { |