Simplify code that parses ifa_flags. am: c00d57d353

Change-Id: I6459879e74cdc1b78cfe956ffd3bbac1dbe1db48