[PATCH 14/18] Input: synaptics_i2c - simplify function return logic

2015-10-02 Thread Javier Martinez Canillas
The invoked function already returns zero on success or a negative errno code so there is no need to open code the logic in the caller. This also fixes the following make coccicheck warnings: drivers/input/mouse/synaptics_i2c.c:298:1-4: WARNING: end returns can be simplified Signed-off-by:

[PATCH 14/18] Input: synaptics_i2c - simplify function return logic

2015-10-02 Thread Javier Martinez Canillas
The invoked function already returns zero on success or a negative errno code so there is no need to open code the logic in the caller. This also fixes the following make coccicheck warnings: drivers/input/mouse/synaptics_i2c.c:298:1-4: WARNING: end returns can be simplified Signed-off-by: