mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +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
|
|
@ -296,17 +296,17 @@ AlterSaveSetForClient(ClientPtr client, WindowPtr pWin, unsigned mode,
|
|||
if (mode == SetModeInsert)
|
||||
{
|
||||
if (j < numnow) /* duplicate */
|
||||
return(Success);
|
||||
return Success;
|
||||
numnow++;
|
||||
pTmp = (SaveSetElt *)realloc(client->saveSet, sizeof(*pTmp) * numnow);
|
||||
if (!pTmp)
|
||||
return(BadAlloc);
|
||||
return BadAlloc;
|
||||
client->saveSet = pTmp;
|
||||
client->numSaved = numnow;
|
||||
SaveSetAssignWindow(client->saveSet[numnow - 1], pWin);
|
||||
SaveSetAssignToRoot(client->saveSet[numnow - 1], toRoot);
|
||||
SaveSetAssignMap(client->saveSet[numnow - 1], map);
|
||||
return(Success);
|
||||
return Success;
|
||||
}
|
||||
else if ((mode == SetModeDelete) && (j < numnow))
|
||||
{
|
||||
|
|
@ -328,9 +328,9 @@ AlterSaveSetForClient(ClientPtr client, WindowPtr pWin, unsigned mode,
|
|||
client->saveSet = (SaveSetElt *)NULL;
|
||||
}
|
||||
client->numSaved = numnow;
|
||||
return(Success);
|
||||
return Success;
|
||||
}
|
||||
return(Success);
|
||||
return Success;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue