HomeFreeBSD

filedesc: tidy up fdcopy a little bit

Description

filedesc: tidy up fdcopy a little bit

Test for file availability by fde_file != NULL instead of fdisused, this is
consistent with similar checks later.

Drop badfileops check. badfileops don't have DFLAG_PASSABLE set, so it was never
reached in practice.

fdiused is now only used in some KASSERTS, so ifdef it under INVARIANTS.

No functional changes.

Details

Provenance
mjgAuthored on
Parents
rS273877: MFC r273159:
Branches
Unknown
Tags
Unknown

Event Timeline