HomeFreeBSD

Eliminate unnecessary loop in _cap_check()

Description

Eliminate unnecessary loop in _cap_check()

Calling cap_rights_contains() several times with the same inputs is not
going to produce a different output. The variable being iterated, i, is
never used inside the for loop.

The loop is actually done in cap_rights_contains()

Submitted by: Ryan Moeller <ryan@freqlabs.com>
Reviewed by: oshogbo, ed
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D7369

Details

Provenance
allanjudeAuthored on
Reviewer
oshogbo
Differential Revision
D7369: Eliminate unnecessary loop in _cap_check()
Parents
rS305136: MFC 302847, 302848, 302852, 302853:
Branches
Unknown
Tags
Unknown