HomeFreeBSD

Return `ret` in op_ifentry(..) to mute a -Wunused-but-set-variable warning

Description

Return ret in op_ifentry(..) to mute a -Wunused-but-set-variable warning

This will also now detect error conditions with
value->var.subs[sub - 1] == LEAF_ifPhysAddress where string_get(..)
could fail if iifp->physaddr and/or iifp->physaddrlen were deemed
invalid.

MFC after: 2 weeks
CID: 1006551
Reported by: Coverity, gcc
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
ngieAuthored on
Parents
rS298461: Fix for printf() compile warning when fast_reg.length is 64-bit.
Branches
Unknown
Tags
Unknown