ipfilter: Remove redundant else if
Combine two else ifs using an or.
(cherry picked from commit f98cc177f7b8afae670f28adf2b88cc00b990bf7)