fs/driver/fs_blockproxy.c: Fix an error handling

Found by clang-check:

driver/fs_blockproxy.c:202:7: warning: Value stored to 'ret' is never read
      ret = -errno;
      ^     ~~~~~~
1 warning generated.
This commit is contained in:
YAMAMOTO Takashi 2020-07-30 11:24:53 +09:00 committed by Brennan Ashton
parent b330b3ac0c
commit 9dcc6f6da6

View File

@ -201,6 +201,7 @@ int block_proxy(FAR const char *blkdev, int oflags)
{ {
ret = -errno; ret = -errno;
ferr("ERROR: Failed to unlink %s: %d\n", chardev, ret); ferr("ERROR: Failed to unlink %s: %d\n", chardev, ret);
goto errout_with_chardev;
} }
/* Free the allocate character driver name and return the open file /* Free the allocate character driver name and return the open file