From 2c89f97f0ae7eeb3474143a2d004e724272383b4 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 28 Jul 2020 11:11:55 -0700 Subject: [PATCH] Cleanup for #inclusivefixit. Test: treehugger Change-Id: I44f710cbda4497c9d01a1ff7c1dcdb8f0eda6acc --- libsysutils/src/NetlinkEvent.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libsysutils/src/NetlinkEvent.cpp b/libsysutils/src/NetlinkEvent.cpp index 9c1621bc8..3b6cfd830 100644 --- a/libsysutils/src/NetlinkEvent.cpp +++ b/libsysutils/src/NetlinkEvent.cpp @@ -185,7 +185,6 @@ bool NetlinkEvent::parseIfAddrMessage(const struct nlmsghdr *nh) { if (!checkRtNetlinkLength(nh, sizeof(*ifaddr))) return false; - // Sanity check. int type = nh->nlmsg_type; if (type != RTM_NEWADDR && type != RTM_DELADDR) { SLOGE("parseIfAddrMessage on incorrect message type 0x%x\n", type); @@ -349,7 +348,6 @@ bool NetlinkEvent::parseRtMessage(const struct nlmsghdr *nh) { uint8_t type = nh->nlmsg_type; const char *msgname = rtMessageName(type); - // Sanity check. if (type != RTM_NEWROUTE && type != RTM_DELROUTE) { SLOGE("%s: incorrect message type %d (%s)\n", __func__, type, msgname); return false;