diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-06-06 21:18:40 +0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-10 06:42:42 -0700 |
commit | 7287ef9e6cf953066e4a092cca9d0e4a279172bf (patch) | |
tree | b67414bd69d1a1afc881e224d2f04cd495eb81d2 /fb | |
parent | b3a7b229e1e1f212bdd185af5443311091824005 (diff) |
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>
Diffstat (limited to 'fb')
-rw-r--r-- | fb/fbcmap.c | 2 | ||||
-rw-r--r-- | fb/fbpixmap.c | 2 | ||||
-rw-r--r-- | fb/fbscreen.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fb/fbcmap.c b/fb/fbcmap.c index 02b72683d..3251a4caa 100644 --- a/fb/fbcmap.c +++ b/fb/fbcmap.c @@ -48,7 +48,7 @@ fbListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps) /* By the time we are processing requests, we can guarantee that there * is always a colormap installed */ *pmaps = GetInstalledColormap(pScreen)->mid; - return (1); + return 1; } diff --git a/fb/fbpixmap.c b/fb/fbpixmap.c index 15eedcdb9..41b12cea7 100644 --- a/fb/fbpixmap.c +++ b/fb/fbpixmap.c @@ -318,7 +318,7 @@ fbPixmapToRegion(PixmapPtr pPix) if (!RegionIsValid(pReg)) FatalError("Assertion failed file %s, line %d: expr\n", __FILE__, __LINE__); #endif - return(pReg); + return pReg; } #ifdef FB_DEBUG diff --git a/fb/fbscreen.c b/fb/fbscreen.c index f4311aedf..2502efeff 100644 --- a/fb/fbscreen.c +++ b/fb/fbscreen.c @@ -43,13 +43,13 @@ fbCloseScreen (int index, ScreenPtr pScreen) Bool fbRealizeFont(ScreenPtr pScreen, FontPtr pFont) { - return (TRUE); + return TRUE; } Bool fbUnrealizeFont(ScreenPtr pScreen, FontPtr pFont) { - return (TRUE); + return TRUE; } void |