zebra: Use shorthand operator in ifm_read()

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
Donatas Abraitis 2020-02-04 20:11:59 +02:00
parent c33b17feb1
commit b49a912271

View File

@ -556,7 +556,7 @@ int ifm_read(struct if_msghdr *ifm)
* is 12 bytes larger than the 32 bit version.
*/
if (((struct sockaddr *)cp)->sa_family == AF_UNSPEC)
cp = cp + 12;
cp += 12;
#endif
/* Look up for RTA_IFP and skip others. */