mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-01 22:03:09 +00:00
Remove unnecessary parentheses around return values in functions
This patch was generated by the following Perl code: perl -i -pe 's/([^_])return\s*\(\s*([^(]+?)\s*\)s*;(\s+(\n))?/$1return $2;$4/g;' Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
b3a7b229e1
commit
7287ef9e6c
145 changed files with 847 additions and 847 deletions
6
dix/gc.c
6
dix/gc.c
|
|
@ -562,7 +562,7 @@ out:
|
|||
pGC = (GCPtr)NULL;
|
||||
}
|
||||
|
||||
return (pGC);
|
||||
return pGC;
|
||||
}
|
||||
|
||||
static Bool
|
||||
|
|
@ -785,7 +785,7 @@ FreeGC(pointer value, XID gid)
|
|||
if (pGC->dash != DefaultDash)
|
||||
free(pGC->dash);
|
||||
dixFreeObjectWithPrivates(pGC, PRIVATE_GC);
|
||||
return(Success);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/* CreateScratchGC(pScreen, depth)
|
||||
|
|
@ -1066,7 +1066,7 @@ SetClipRects(GCPtr pGC, int xOrigin, int yOrigin, int nrects,
|
|||
|
||||
newct = VerifyRectOrder(nrects, prects, ordering);
|
||||
if (newct < 0)
|
||||
return(BadMatch);
|
||||
return BadMatch;
|
||||
size = nrects * sizeof(xRectangle);
|
||||
prectsNew = malloc(size);
|
||||
if (!prectsNew && size)
|
||||
|
|
|
|||
Loading…
Reference in a new issue