X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Ffileio.c;h=484d87df649e52c5c444c71e24318bc9735dafda;hp=735c5760154c09ccd4099872527cd399da598859;hb=6d1d58a1fc3dfd60e9cac89460b5a6e438d11efa;hpb=86e4324f1bd4cd8135cb857e4b940b1f2e872dc3 diff --git a/src/helper/fileio.c b/src/helper/fileio.c index 735c576015..484d87df64 100644 --- a/src/helper/fileio.c +++ b/src/helper/fileio.c @@ -84,7 +84,7 @@ static inline int fileio_open_local(fileio_t *fileio) result2 = fseek(fileio->file, 0, SEEK_SET); - if ((fileio->size<0)||(result<0)||(result2<0)) + if ((fileio->size < 0)||(result < 0)||(result2 < 0)) { fileio_close(fileio); return ERROR_FILEIO_OPERATION_FAILED; @@ -182,7 +182,7 @@ int fileio_read_u32(fileio_t *fileio, uint32_t *data) static inline int fileio_local_fgets(fileio_t *fileio, uint32_t size, char *buffer) { - if( fgets(buffer, size, fileio->file) == NULL) + if ( fgets(buffer, size, fileio->file) == NULL) return ERROR_FILEIO_OPERATION_FAILED; return ERROR_OK;