diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-08 04:02:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-08 06:37:55 +0300 |
commit | 586a3084677b03e314a906ffdac3560a24058409 (patch) | |
tree | b2b920b14e5408b09556c514814e82a188a1d38d /source/blender/imbuf/intern/png.c | |
parent | f1b1a0745f53564ed8eedd90d2de41cdf1d72836 (diff) |
Cleanup: remove redundant return parenthesis
Diffstat (limited to 'source/blender/imbuf/intern/png.c')
-rw-r--r-- | source/blender/imbuf/intern/png.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/imbuf/intern/png.c b/source/blender/imbuf/intern/png.c index 9e600f363c5..2eb1b216572 100644 --- a/source/blender/imbuf/intern/png.c +++ b/source/blender/imbuf/intern/png.c @@ -71,7 +71,7 @@ int imb_is_a_png(const unsigned char *mem) ret_val = !png_sig_cmp(mem, 0, 8); #endif } - return (ret_val); + return ret_val; } static void Flush(png_structp png_ptr) @@ -161,7 +161,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags) bytesperpixel = (ibuf->planes + 7) >> 3; if ((bytesperpixel > 4) || (bytesperpixel == 2)) { printf("imb_savepng: Unsupported bytes per pixel: %d for file: '%s'\n", bytesperpixel, name); - return (0); + return 0; } png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); @@ -511,7 +511,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags) fclose(fp); } - return (1); + return 1; } static void imb_png_warning(png_structp UNUSED(png_ptr), png_const_charp message) @@ -549,7 +549,7 @@ ImBuf *imb_loadpng(const unsigned char *mem, size_t size, int flags, char colors unsigned int channels; if (imb_is_a_png(mem) == 0) { - return (NULL); + return NULL; } /* both 8 and 16 bit PNGs are default to standard byte colorspace */ @@ -819,5 +819,5 @@ ImBuf *imb_loadpng(const unsigned char *mem, size_t size, int flags, char colors } png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); - return (ibuf); + return ibuf; } |