mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
cr_bsd_visible(): Style fixes
Explicitly test for non-zero return codes. Separate assignment and testing of 'error' in distinct lines. Reviewed by: emaste, kib Approved by: emaste (mentor) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43335
This commit is contained in:
parent
6211cd4be3
commit
a1e37beb45
|
@ -1463,11 +1463,14 @@ cr_bsd_visible(struct ucred *u1, struct ucred *u2)
|
|||
{
|
||||
int error;
|
||||
|
||||
if ((error = cr_canseeotheruids(u1, u2)))
|
||||
error = cr_canseeotheruids(u1, u2);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
if ((error = cr_canseeothergids(u1, u2)))
|
||||
error = cr_canseeothergids(u1, u2);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
if ((error = cr_canseejailproc(u1, u2)))
|
||||
error = cr_canseejailproc(u1, u2);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue