Skip to content

Commit

Permalink
Remove unnecessary return value check
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Jan 10, 2025
1 parent 0657a90 commit df15eea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions common/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,8 @@ bool write_file(const uint8_t *buf, size_t buf_len, FILE *fp, format_t format) {
BIO_free_all(bio);
return false;
}
if(BIO_get_mem_ptr(bio, &bufferPtr) != 1) {
BIO_free_all(bio);
return false;
}
BIO_get_mem_ptr(bio, &bufferPtr);

p = (uint8_t *) bufferPtr->data;
length = bufferPtr->length;
} else if (format == _hex) {
Expand Down

0 comments on commit df15eea

Please sign in to comment.