iio:prox:sx9500 trivial simplification of return path in init function.
Jonathan Cameron
maintainerPATCH 1/1 iio:prox:sx9500 trivial simplification of return path in init function.
--- drivers/iio/proximity/sx9500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/iio/proximity/sx9500.c +1 -3
@@ -860,10 +860,8 @@ static int sx9500_init_device(struct iio_dev *indio_dev) } ret =sx9500_init_compensation (indio_dev); -if (ret <0 ) -return ret; -return 0 ; +return ret; } static void sx9500_gpio_probe(struct i2c_client *client,
Signature · 1 line
2.3.5
Quoted 6 lines · Jonathan Cameron
Signed-off-by Jonathan Cameron <[email protected]>Reported-by kbuild test robot <[email protected]>Cc Vlad Dogaru <[email protected]>--- drivers/iio/proximity/sx9500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Not sure if changes like this need a review, but this looks good to me.
Quoted 19 lines
drivers/iio/proximity/sx9500.c +1
-3@@ -860,10 +860,8 @@ static int sx9500_init_device(struct iio_dev *indio_dev) } ret =sx9500_init_compensation (indio_dev); -if (ret <0 ) -return ret; -return 0 ; +return ret; } static void sx9500_gpio_probe(struct i2c_client *client,Signature · 1 line
2.3.5
Quoted 12 lines · Jonathan Cameron
Signed-off-by Jonathan Cameron <[email protected]>Reported-by kbuild test robot <[email protected]>Cc Vlad Dogaru <[email protected]>--- drivers/iio/proximity/sx9500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/iio/proximity/sx9500.c +0
-0
drivers/iio/proximity/sx9500.c static int sx9500_init_device(struct iio_dev *indio_dev) · line 865
Quoted 9 lines
drivers/iio/proximity/sx9500.c +1
-3@@ -860,10 +860,8 @@ static int sx9500_init_device(struct iio_dev *indio_dev) } ret =sx9500_init_compensation (indio_dev); -if (ret <0 ) -return ret; -return 0 ; +return ret; }
Or, better directly return sx9500_init_comp...
Daniel.
Jonathan Cameron
maintainerQuoted 19 lines · Daniel Baluta
Quoted 18 lines · Jonathan Cameron
Signed-off-by Jonathan Cameron <[email protected]>Reported-by kbuild test robot <[email protected]>Cc Vlad Dogaru <[email protected]>--- drivers/iio/proximity/sx9500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/iio/proximity/sx9500.c +0
-2@@ -860,10 +860,8 @@ static int sx9500_init_device(struct iio_dev *indio_dev) } ret =sx9500_init_compensation (indio_dev); -if (ret <0 ) -return ret;
Quoted 5 lines
drivers/iio/proximity/sx9500.c static int sx9500_init_device(struct iio_dev *indio_dev) · line 865
Quoted 3 lines
drivers/iio/proximity/sx9500.c +1
-1-return 0 ; +return ret; }Or, better directly return
sx9500_init_comp...
oops. Good point ;)
Quoted 7 lines
Daniel.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Jonathan Cameron
maintainerQuoted 20 lines · Jonathan Cameron
Quoted 19 lines · Daniel Baluta
Quoted 18 lines · Jonathan Cameron
Signed-off-by Jonathan Cameron <[email protected]>Reported-by kbuild test robot <[email protected]>Cc Vlad Dogaru <[email protected]>--- drivers/iio/proximity/sx9500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/iio/proximity/sx9500.c +0
-2@@ -860,10 +860,8 @@ static int sx9500_init_device(struct iio_dev *indio_dev) } ret =sx9500_init_compensation (indio_dev); -if (ret <0 ) -return ret;
Quoted 6 lines
Quoted 5 lines
drivers/iio/proximity/sx9500.c static int sx9500_init_device(struct iio_dev *indio_dev) · line 865
Quoted 3 lines
drivers/iio/proximity/sx9500.c +1
-1-return 0 ; +return ret; }Or, better directly return
sx9500_init_comp...oops. Good point ;)
Applied with the entirely obvious change that I'd missed and Vlad hadn't noticed made!
Btw Vlad, this is why even stupidly simple patches ideally get a review. Often they have the silliest mistakes in them.
Thanks All,
I'm travelling for a few days so not sure when I'll push out my local tree.
Quoted 13 lines
Quoted 7 lines
Daniel.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html