projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
jtag/adapter: move config vars in struct adapter_config
[fw/openocd]
/
src
/
helper
/
fileio.c
diff --git
a/src/helper/fileio.c
b/src/helper/fileio.c
index d544b8544d3dc313d09ab4cd6fb18f36a094f0ca..cec7dec52a650fad150678207327e032ecb90501 100644
(file)
--- a/
src/helper/fileio.c
+++ b/
src/helper/fileio.c
@@
-208,7
+208,7
@@
int fileio_read_u32(struct fileio *fileio, uint32_t *data)
static int fileio_local_fgets(struct fileio *fileio, size_t size, void *buffer)
{
- if (
fgets(buffer, size, fileio->file) == NULL
)
+ if (
!fgets(buffer, size, fileio->file)
)
return ERROR_FILEIO_OPERATION_FAILED;
return ERROR_OK;