Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: kxtj9 - remove unneeded retval variable

The retval variable isn't needed since isn't used in the function. Remove
the variable and just return 0 instead.

This also fixes the following make coccicheck warning:

drivers/input/misc/kxtj9.c:638:5-11: Unneeded variable: "retval". Return "0" on line 646

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Javier Martinez Canillas and committed by
Dmitry Torokhov
5ccd9abd 5702222c

+1 -2
+1 -2
drivers/input/misc/kxtj9.c
··· 635 635 struct i2c_client *client = to_i2c_client(dev); 636 636 struct kxtj9_data *tj9 = i2c_get_clientdata(client); 637 637 struct input_dev *input_dev = tj9->input_dev; 638 - int retval = 0; 639 638 640 639 mutex_lock(&input_dev->mutex); 641 640 ··· 642 643 kxtj9_enable(tj9); 643 644 644 645 mutex_unlock(&input_dev->mutex); 645 - return retval; 646 + return 0; 646 647 } 647 648 648 649 static SIMPLE_DEV_PM_OPS(kxtj9_pm_ops, kxtj9_suspend, kxtj9_resume);