Skip to content

Commit 62b14c8

Browse files
committed
Removed unnecessary check for NULL
1 parent 21eee04 commit 62b14c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

platform/source/minimal-printf/mbed_printf_implementation.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ static void mbed_minimal_putchar(char *buffer, size_t length, int *result, char
126126
if (buffer) {
127127
buffer[*result] = data;
128128
} else {
129-
if (stream) {
130-
fputc(data, stream);
131-
}
129+
fputc(data, stream);
132130
}
133131
}
134132
/* increment 'result' even if data was not written. This ensures that

0 commit comments

Comments
 (0)