The ptrtoint result here is used in icmp. However, icmp can already directly work with pointers, so there's no need to perform the cast. (I originally wanted to switch this to ptrtoaddr, but that's not really necessary when we can directly compare on pointers.)