diff --git a/thumbhash.cpp b/thumbhash.cpp index e1add5e8..0573ada9 100644 --- a/thumbhash.cpp +++ b/thumbhash.cpp @@ -16,9 +16,6 @@ struct thumbhash_encoder_struct { thumbhash_encoder thumbhash_encoder_create(void* buf, size_t buf_len) { thumbhash_encoder e = new struct thumbhash_encoder_struct(); - if (!e) { - return NULL; - } memset(e, 0, sizeof(struct thumbhash_encoder_struct)); e->dst = (uint8_t*)(buf); e->dst_len = buf_len;