* [PATCH] iio:gyro:itg3200 - drop unreachable return ret. Highlighted by smatch
@ 2014-03-01 22:08 Jonathan Cameron
2014-03-15 16:28 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Cameron @ 2014-03-01 22:08 UTC (permalink / raw)
To: linux-iio; +Cc: Jonathan Cameron, Neil Brown, Dan Carpenter
CHECK drivers/iio/gyro/itg3200_core.c
drivers/iio/gyro/itg3200_core.c:114 itg3200_read_raw() info: ignoring unreachable code.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Neil Brown <neilb@suse.de>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
---
drivers/iio/gyro/itg3200_core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/iio/gyro/itg3200_core.c b/drivers/iio/gyro/itg3200_core.c
index 4d3f3b9..8295e31 100644
--- a/drivers/iio/gyro/itg3200_core.c
+++ b/drivers/iio/gyro/itg3200_core.c
@@ -110,8 +110,6 @@ static int itg3200_read_raw(struct iio_dev *indio_dev,
default:
return -EINVAL;
}
-
- return ret;
}
static ssize_t itg3200_read_frequency(struct device *dev,
--
1.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio:gyro:itg3200 - drop unreachable return ret. Highlighted by smatch
2014-03-01 22:08 [PATCH] iio:gyro:itg3200 - drop unreachable return ret. Highlighted by smatch Jonathan Cameron
@ 2014-03-15 16:28 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2014-03-15 16:28 UTC (permalink / raw)
To: linux-iio; +Cc: Neil Brown, Dan Carpenter
On 01/03/14 22:08, Jonathan Cameron wrote:
> CHECK drivers/iio/gyro/itg3200_core.c
> drivers/iio/gyro/itg3200_core.c:114 itg3200_read_raw() info: ignoring unreachable code.
>
> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
> Cc: Neil Brown <neilb@suse.de>
> Cc: Dan Carpenter <dan.carpenter@oracle.com>
Applied to the togreg branch of iio.git as clearly no one cares.
> ---
> drivers/iio/gyro/itg3200_core.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/iio/gyro/itg3200_core.c b/drivers/iio/gyro/itg3200_core.c
> index 4d3f3b9..8295e31 100644
> --- a/drivers/iio/gyro/itg3200_core.c
> +++ b/drivers/iio/gyro/itg3200_core.c
> @@ -110,8 +110,6 @@ static int itg3200_read_raw(struct iio_dev *indio_dev,
> default:
> return -EINVAL;
> }
> -
> - return ret;
> }
>
> static ssize_t itg3200_read_frequency(struct device *dev,
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-15 16:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-01 22:08 [PATCH] iio:gyro:itg3200 - drop unreachable return ret. Highlighted by smatch Jonathan Cameron
2014-03-15 16:28 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).