[interface] Avoid unnecessary reference counting in intf_unplug()
authorMichael Brown <mcb30@ipxe.org>
Wed, 25 Jan 2017 10:11:26 +0000 (10:11 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 25 Jan 2017 10:16:36 +0000 (10:16 +0000)
commit8ef4e7c572d6cf4feb6578d253a0268bc603ad16
tree965f24439f83dadab67e83a77ccf3a7627a29958
parent941c53a3bf0f0c1c276996e2a68b0fa6263ce410
[interface] Avoid unnecessary reference counting in intf_unplug()

The null interface does not have a reference counter, so the call to
intf_get() is always redundant.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/interface.c