Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-08-08 04:02:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-08 06:37:55 +0300
commit586a3084677b03e314a906ffdac3560a24058409 (patch)
treeb2b920b14e5408b09556c514814e82a188a1d38d /source/blender/imbuf/intern/tiff.c
parentf1b1a0745f53564ed8eedd90d2de41cdf1d72836 (diff)
Cleanup: remove redundant return parenthesis
Diffstat (limited to 'source/blender/imbuf/intern/tiff.c')
-rw-r--r--source/blender/imbuf/intern/tiff.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c
index 5d72066675b..c95476fa628 100644
--- a/source/blender/imbuf/intern/tiff.c
+++ b/source/blender/imbuf/intern/tiff.c
@@ -104,7 +104,7 @@ static int imb_tiff_DummyMapProc(
(void)pbase;
(void)psize;
- return (0);
+ return 0;
}
/**
@@ -145,7 +145,7 @@ static tsize_t imb_tiff_ReadProc(thandle_t handle, tdata_t data, tsize_t n)
/* on EOF, return immediately and read (copy) nothing */
if (nCopy <= 0) {
- return (0);
+ return 0;
}
/* all set -> do the read (copy) */
@@ -238,7 +238,7 @@ static int imb_tiff_CloseProc(thandle_t handle)
mfile = IMB_TIFF_GET_MEMFILE(handle);
if (!mfile || !mfile->mem) {
fprintf(stderr, "imb_tiff_CloseProc: !mfile || !mfile->mem!\n");
- return (0);
+ return 0;
}
/* virtually close the file */
@@ -246,7 +246,7 @@ static int imb_tiff_CloseProc(thandle_t handle)
mfile->offset = 0;
mfile->size = 0;
- return (0);
+ return 0;
}
/**
@@ -262,7 +262,7 @@ static toff_t imb_tiff_SizeProc(thandle_t handle)
mfile = IMB_TIFF_GET_MEMFILE(handle);
if (!mfile || !mfile->mem) {
fprintf(stderr, "imb_tiff_SizeProc: !mfile || !mfile->mem!\n");
- return (0);
+ return 0;
}
/* return the size */
@@ -764,7 +764,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
"imb_savetiff: unsupported number of bytes per "
"pixel: %d\n",
samplesperpixel);
- return (0);
+ return 0;
}
if ((ibuf->foptions.flag & TIF_16BIT) && ibuf->rect_float) {
@@ -790,7 +790,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
fprintf(stderr,
"imb_savetiff: creation of in-memory TIFF files is "
"not yet supported.\n");
- return (0);
+ return 0;
}
/* create image as a file */
@@ -804,7 +804,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
if (image == NULL) {
fprintf(stderr, "imb_savetiff: could not open TIFF for writing.\n");
- return (0);
+ return 0;
}
/* allocate array for pixel data */
@@ -819,7 +819,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
if (pixels == NULL && pixels16 == NULL) {
fprintf(stderr, "imb_savetiff: could not allocate pixels array.\n");
TIFFClose(image);
- return (0);
+ return 0;
}
/* setup pointers */
@@ -945,7 +945,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
if (pixels16) {
_TIFFfree(pixels16);
}
- return (1);
+ return 1;
}
/* close the TIFF file */
@@ -956,5 +956,5 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
if (pixels16) {
_TIFFfree(pixels16);
}
- return (1);
+ return 1;
}