diff options
author | Greg Kroah-Hartman <[email protected]> | 2019-06-13 20:37:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-06-21 15:46:33 +0200 |
commit | a6cd400ac8a8b39b6830621eb51db351e1048f79 (patch) | |
tree | d31b7bd2438782fda27401f5e10bb0a54fcd15b7 | |
parent | 10ff826ab0a46e6fbac324b3a633c4943e2a745e (diff) |
thermal: bcm2835: no need to check return value of debugfs_create functions
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.
Cc: Zhang Rui <[email protected]>
Cc: Eduardo Valentin <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Ray Jui <[email protected]>
Cc: Scott Branden <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/thermal/broadcom/bcm2835_thermal.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/thermal/broadcom/bcm2835_thermal.c b/drivers/thermal/broadcom/bcm2835_thermal.c index ba39647a690c..3199977f1e73 100644 --- a/drivers/thermal/broadcom/bcm2835_thermal.c +++ b/drivers/thermal/broadcom/bcm2835_thermal.c @@ -123,8 +123,6 @@ static void bcm2835_thermal_debugfs(struct platform_device *pdev) struct debugfs_regset32 *regset; data->debugfsdir = debugfs_create_dir("bcm2835_thermal", NULL); - if (!data->debugfsdir) - return; regset = devm_kzalloc(&pdev->dev, sizeof(*regset), GFP_KERNEL); if (!regset) |