HomeFreeBSD

filedesc: avoid spurious copying of capabilities in fget_unlocked

Description

filedesc: avoid spurious copying of capabilities in fget_unlocked

We obtain a stable copy and store it in local 'fde' variable. Storing another
copy (based on aforementioned variable) does not serve any purpose.

No functional changes.

Details

Provenance
mjgAuthored on
Parents
rS277495: filedesc: return 0 from badfo_close
Branches
Unknown
Tags
Unknown

Event Timeline