projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ebcb2
)
tools:iio:iio_utils: move up reset of sysfsfp
author
Hartmut Knaack
<knaack.h@gmx.de>
Sun, 31 May 2015 12:40:20 +0000
(14:40 +0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 1 Jun 2015 07:37:09 +0000
(08:37 +0100)
In iioutils_get_type() it is logically better fitting to have sysfsfp
assigned zero right after closing it.
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_utils.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/iio/iio_utils.c
b/tools/iio/iio_utils.c
index c83f4dfe71d64b5aabec82eea2612c3cc50aa1c9..7c0abb306f5ab96eaaacb3644c3417bb55c37f67 100644
(file)
--- a/
tools/iio/iio_utils.c
+++ b/
tools/iio/iio_utils.c
@@
-175,10
+175,10
@@
int iioutils_get_type(unsigned *is_signed,
goto error_free_filename;
}
+ sysfsfp = 0;
free(filename);
filename = 0;
- sysfsfp = 0;
}
error_close_sysfsfp:
if (sysfsfp)