diff options
author | GwanYeong Kim <gy741.kim@gmail.com> | 2021-06-19 20:23:58 +0900 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-07-19 08:46:33 +0900 |
commit | 1fb7e753c0a852e71080689105f133e675ced4d9 (patch) | |
tree | 1cf46ad99ab537f4a1c3a2ee97918636676cfeda | |
parent | c7c7d1c671a56077db3b8fd098c0e6a26f6102bf (diff) | |
download | DLT-daemon-1fb7e753c0a852e71080689105f133e675ced4d9.tar.gz |
dlt-convert: Remove duplicated conditional statements code
This commit removes duplicate conditional statements.
Signed-off-by: GwanYeong Kim <gy741.kim@gmail.com>
-rw-r--r-- | src/console/dlt-convert.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/console/dlt-convert.c b/src/console/dlt-convert.c index 7d69bff..b82c104 100644 --- a/src/console/dlt-convert.c +++ b/src/console/dlt-convert.c @@ -472,10 +472,7 @@ int main(int argc, char *argv[]) if (0 > bytes_written) { printf("in main: writev(ohandle, iov, 2); returned an error!"); - - if (ovalue) - close(ohandle); - + close(ohandle); dlt_file_free(&file, vflag); return -1; } |