From 42bc856797f3ff3dc1b7c7a41c3382f173433941 Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Wed, 22 Sep 2021 09:33:54 +0800 Subject: [PATCH] input: qcom-hv-haptics: remove return value for debugfs_create_u32() Remove the return value when creating "fifo_empty_thresh" debugfs node because debugfs_create_u32() API no longer supports return value. Change-Id: I7b39ed79a9148c2815b8656222dc6f61540b2129 Signed-off-by: Fenglin Wu --- drivers/input/misc/qcom-hv-haptics.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/input/misc/qcom-hv-haptics.c b/drivers/input/misc/qcom-hv-haptics.c index 4bc278bf9546..846dde8ffb41 100644 --- a/drivers/input/misc/qcom-hv-haptics.c +++ b/drivers/input/misc/qcom-hv-haptics.c @@ -3511,15 +3511,8 @@ static int haptics_create_debugfs(struct haptics_chip *chip) goto exit; } - file = debugfs_create_u32("fifo_empty_thresh", 0600, hap_dir, + debugfs_create_u32("fifo_empty_thresh", 0600, hap_dir, &chip->config.fifo_empty_thresh); - if (IS_ERR(file)) { - rc = PTR_ERR(file); - dev_err(chip->dev, "create fifo_empty_thresh debugfs failed, rc=%d\n", - rc); - goto exit; - } - chip->debugfs_dir = hap_dir; return 0;