mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-18 19:52:21 +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
|
|
@ -269,7 +269,7 @@ ProcXFixesSelectCursorInput (ClientPtr client)
|
|||
if (stuff->eventMask & ~CursorAllEvents)
|
||||
{
|
||||
client->errorValue = stuff->eventMask;
|
||||
return( BadValue );
|
||||
return BadValue;
|
||||
}
|
||||
return XFixesSelectCursorInput (client, pWin, stuff->eventMask);
|
||||
}
|
||||
|
|
@ -732,7 +732,7 @@ static Bool
|
|||
TestForCursorName (CursorPtr pCursor, pointer closure)
|
||||
{
|
||||
Atom *pName = closure;
|
||||
return (pCursor->name == *pName);
|
||||
return pCursor->name == *pName;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ XFixesRegionInit (void)
|
|||
{
|
||||
RegionResType = CreateNewResourceType(RegionResFree, "XFixesRegion");
|
||||
|
||||
return (RegionResType != 0);
|
||||
return RegionResType != 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
|
|
@ -43,17 +43,17 @@ ProcXFixesChangeSaveSet(ClientPtr client)
|
|||
if ((stuff->mode != SetModeInsert) && (stuff->mode != SetModeDelete))
|
||||
{
|
||||
client->errorValue = stuff->mode;
|
||||
return( BadValue );
|
||||
return BadValue;
|
||||
}
|
||||
if ((stuff->target != SaveSetNearest) && (stuff->target != SaveSetRoot))
|
||||
{
|
||||
client->errorValue = stuff->target;
|
||||
return( BadValue );
|
||||
return BadValue;
|
||||
}
|
||||
if ((stuff->map != SaveSetMap) && (stuff->map != SaveSetUnmap))
|
||||
{
|
||||
client->errorValue = stuff->map;
|
||||
return( BadValue );
|
||||
return BadValue;
|
||||
}
|
||||
toRoot = (stuff->target == SaveSetRoot);
|
||||
map = (stuff->map == SaveSetMap);
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ ProcXFixesSelectSelectionInput (ClientPtr client)
|
|||
if (stuff->eventMask & ~SelectionAllEvents)
|
||||
{
|
||||
client->errorValue = stuff->eventMask;
|
||||
return( BadValue );
|
||||
return BadValue;
|
||||
}
|
||||
return XFixesSelectSelectionInput (client, stuff->selection,
|
||||
pWin, stuff->eventMask);
|
||||
|
|
|
|||
Loading…
Reference in a new issue