cdbfc79a26
Remove duplicated check by reorganizing the code, no functional change. Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>