summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-10-22 10:06:59 +0300
committerGuenter Roeck <linux@roeck-us.net>2020-12-02 17:42:22 -0800
commit92bc2e1f82afa2e456d7416598ffdf3dbf267835 (patch)
tree8aa0af4999cc84fdb491706d2c9f7f8119b2ed54 /drivers/power
parent96eca8c97fccd3c02f61a87b0341a079b4096730 (diff)
downloadlinux-92bc2e1f82afa2e456d7416598ffdf3dbf267835.tar.gz
linux-92bc2e1f82afa2e456d7416598ffdf3dbf267835.tar.bz2
linux-92bc2e1f82afa2e456d7416598ffdf3dbf267835.zip
hwmon: (pmbus/max20730) delete some dead code
The debugfs_create_dir() function never returns NULL. Normal users are not supposed to check the return value so the correct fix is just to delete this check. In the case where the debugfs_create_dir() fails, the function returns NULL. The other debugfs function check for NULL directory and handle it. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20201022070659.GA2817762@mwanda Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions