Simplify code that parses ifa_flags. am: c00d57d353 am: eb5711913c

Change-Id: If7e616ab1dba7be5dc0add09b95e76f1443be755