Skip to content

Commit df15eea

Browse files
committed
Remove unnecessary return value check
1 parent 0657a90 commit df15eea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

common/util.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -705,10 +705,8 @@ bool write_file(const uint8_t *buf, size_t buf_len, FILE *fp, format_t format) {
705705
BIO_free_all(bio);
706706
return false;
707707
}
708-
if(BIO_get_mem_ptr(bio, &bufferPtr) != 1) {
709-
BIO_free_all(bio);
710-
return false;
711-
}
708+
BIO_get_mem_ptr(bio, &bufferPtr);
709+
712710
p = (uint8_t *) bufferPtr->data;
713711
length = bufferPtr->length;
714712
} else if (format == _hex) {

0 commit comments

Comments
 (0)