summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-06-18 16:46:01 +0300
committerGuenter Roeck <linux@roeck-us.net>2021-06-18 12:45:58 -0700
commit9e25f01b5f529d397be2e3f595b0b54ae9e80c58 (patch)
treeacafc00e3c75a42a2b6ad12ec2042031822e81b6
parentf0000797a3862eba99d06e65be846317c1ccbd8e (diff)
hwmon: (pmbus/dps920ab) Delete some dead code
The debugfs_create_dir() function returns error pointers, it doesn't return NULL. But debugfs functions don't need to be checked in normal situations and we can just delete this code. Fixes: 1f442e213ce5 ("hwmon: (pmbus) Add driver for Delta DPS-920AB PSU") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/YMyjmR54ErLtc1sH@mwanda Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r--drivers/hwmon/pmbus/dps920ab.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwmon/pmbus/dps920ab.c b/drivers/hwmon/pmbus/dps920ab.c
index bd2df2a3c8e3..d3941f6eb29a 100644
--- a/drivers/hwmon/pmbus/dps920ab.c
+++ b/drivers/hwmon/pmbus/dps920ab.c
@@ -119,8 +119,6 @@ static void dps920ab_init_debugfs(struct dps920ab_data *data, struct i2c_client
return;
debugfs_dir = debugfs_create_dir(client->name, root);
- if (!debugfs_dir)
- return;
debugfs_create_file("mfr_id",
0400,