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:
parent
b330b3ac0c
commit
9dcc6f6da6
@ -201,6 +201,7 @@ int block_proxy(FAR const char *blkdev, int oflags)
|
||||
{
|
||||
ret = -errno;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user