summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSang-Heon Jeon <ekffu200098@gmail.com>2026-07-30 02:09:35 +0900
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-08-04 21:27:53 -0700
commitf523729aa10bb721eced4784e20d11223255faf8 (patch)
tree96cc8b65b0cfb0b6ed9715fc0f757e84ad3d1115
parent5005fa144501d866c392f7fc3d84ba7c2939ee20 (diff)
Input: synaptics_i2c - return 0 explicitly on success
error is always zero at the last return in synaptics_i2c_reg_set(). Explicitly return 0 on the success path instead of returning error, which is the preferred way when there are multiple failure points. No functional change. Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Link: https://patch.msgid.link/20260729171001.260698-4-ekffu200098@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/mouse/synaptics_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/synaptics_i2c.c b/drivers/input/mouse/synaptics_i2c.c
index d4cf982f1263..66e833974c6d 100644
--- a/drivers/input/mouse/synaptics_i2c.c
+++ b/drivers/input/mouse/synaptics_i2c.c
@@ -261,7 +261,7 @@ static s32 synaptics_i2c_reg_set(struct i2c_client *client, u16 reg, u8 val)
if (error)
return error;
- return error;
+ return 0;
}
static s32 synaptics_i2c_word_get(struct i2c_client *client, u16 reg)