libc/blkoutstream: Minor style fix

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-14 07:23:18 +08:00 committed by Petro Karashchenko
parent 889a3bf7fc
commit 5cb82dfcfb
1 changed files with 3 additions and 3 deletions

View File

@ -148,15 +148,15 @@ static int blkoutstream_puts(FAR struct lib_outstream_s *this,
void lib_blkoutstream_close(FAR struct lib_blkoutstream_s *stream)
{
if (stream)
if (stream != NULL)
{
if (stream->inode)
if (stream->inode != NULL)
{
close_blockdriver(stream->inode);
stream->inode = NULL;
}
if (stream->cache)
if (stream->cache != NULL)
{
lib_free(stream->cache);
stream->cache = NULL;