lkml.org 
[lkml]   [2015]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] tools: iio: Remove unnecessary braces
Cristina Opriceana schrieb am 13.07.2015 um 15:17:
> Single statement blocks don’t need braces.
> Found with checkpatch.pl.
>
> Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
> ---

Oops, that slipped through my hands. Thanks for taking care of this.

> tools/iio/iio_event_monitor.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c
> index 703f4cb..9ee1959 100644
> --- a/tools/iio/iio_event_monitor.c
> +++ b/tools/iio/iio_event_monitor.c
> @@ -262,9 +262,8 @@ int main(int argc, char **argv)
> printf("Found IIO device with name %s with device number %d\n",
> device_name, dev_num);
> ret =sprintf(&chrdev_name, "/dev/iio:device%d", dev_num);
> - if (ret < 0) {
> + if (ret < 0)
> return -ENOMEM;
> - }
> } else {
> /*
> * If we can't find an IIO device by name assume device_name is
>



\
 
 \ /
  Last update: 2015-07-13 21:01    [W:0.062 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site