Tag: da29461ccdf811b27a1cf53483ec2457fb4a6ae7

Staging: iio: Simplify return logic

Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch removes the conditional return of the ade77*_probe functions based on the return values of iio_device_register as the latter returns 0 or ret, the same as the checked values. Warning found by coccinelle. Signed-off-by: Cristina Opriceana Reviewed-by: Daniel Baluta Signed-off-by: Greg Kroah-Hartman — drivers/staging/iio/meter/ade7753.c | 6 +—– drivers/staging/iio/meter/ade7754.c | 6 …

Continue reading