From 5cb82dfcfb6a1737142bf03a6490de98b57337ff Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 14 Apr 2022 07:23:18 +0800 Subject: [PATCH] libc/blkoutstream: Minor style fix Signed-off-by: Xiang Xiao --- libs/libc/stream/lib_blkoutstream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/libc/stream/lib_blkoutstream.c b/libs/libc/stream/lib_blkoutstream.c index 929cb1997e..fba2b7b974 100644 --- a/libs/libc/stream/lib_blkoutstream.c +++ b/libs/libc/stream/lib_blkoutstream.c @@ -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;