mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18: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:
committed by
Keith Packard
parent
b3a7b229e1
commit
7287ef9e6c
@@ -77,7 +77,7 @@ GLint __glGetMap_size(GLenum target, GLenum query)
|
||||
/*
|
||||
** The query above might fail, but then order will be zero anyway.
|
||||
*/
|
||||
return (order * k);
|
||||
return order * k;
|
||||
case GL_DOMAIN:
|
||||
return 2;
|
||||
case GL_ORDER:
|
||||
@@ -101,7 +101,7 @@ GLint __glGetMap_size(GLenum target, GLenum query)
|
||||
/*
|
||||
** The query above might fail, but then majorMinor will be zeroes
|
||||
*/
|
||||
return (majorMinor[0] * majorMinor[1] * k);
|
||||
return majorMinor[0] * majorMinor[1] * k;
|
||||
case GL_DOMAIN:
|
||||
return 4;
|
||||
case GL_ORDER:
|
||||
|
||||
Reference in New Issue
Block a user