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
|
|
@ -175,11 +175,11 @@ xf86validateInput (XF86ConfigPtr p)
|
|||
while (input) {
|
||||
if (!input->inp_driver) {
|
||||
xf86validationError (UNDEFINED_INPUTDRIVER_MSG, input->inp_identifier);
|
||||
return (FALSE);
|
||||
return FALSE;
|
||||
}
|
||||
input = input->list.next;
|
||||
}
|
||||
return (TRUE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
XF86ConfInputPtr
|
||||
|
|
@ -188,11 +188,11 @@ xf86findInput (const char *ident, XF86ConfInputPtr p)
|
|||
while (p)
|
||||
{
|
||||
if (xf86nameCompare (ident, p->inp_identifier) == 0)
|
||||
return (p);
|
||||
return p;
|
||||
|
||||
p = p->list.next;
|
||||
}
|
||||
return (NULL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
XF86ConfInputPtr
|
||||
|
|
@ -201,10 +201,10 @@ xf86findInputByDriver (const char *driver, XF86ConfInputPtr p)
|
|||
while (p)
|
||||
{
|
||||
if (xf86nameCompare (driver, p->inp_driver) == 0)
|
||||
return (p);
|
||||
return p;
|
||||
|
||||
p = p->list.next;
|
||||
}
|
||||
return (NULL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue