diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-31 09:05:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-31 09:05:57 +0300 |
commit | b547ac32d94e988a5514dc1e79f2d7181a5385d5 (patch) | |
tree | a186960d5e6997ff154218960783d1f26e925059 /source/blender/imbuf/intern/tiff.c | |
parent | e7f890aa59add3b0d83fd56c7423aa58cdd30f65 (diff) |
Cleanup: use early return for imbuf image loader functions
Most imbuf loaders already did this, use early exit for the remaining
loaders that didn't.
Diffstat (limited to 'source/blender/imbuf/intern/tiff.c')
-rw-r--r-- | source/blender/imbuf/intern/tiff.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c index 2fb14e40d9d..001cd4e1575 100644 --- a/source/blender/imbuf/intern/tiff.c +++ b/source/blender/imbuf/intern/tiff.c @@ -576,11 +576,7 @@ ImBuf *imb_loadtiff(const unsigned char *mem, int ib_depth; int found; - /* check whether or not we have a TIFF file */ - if (size < IMB_TIFF_NCB) { - fprintf(stderr, "imb_loadtiff: size < IMB_TIFF_NCB\n"); - return NULL; - } + /* Check whether or not we have a TIFF file. */ if (imb_is_a_tiff(mem, size) == 0) { return NULL; } |