Is checking this conditional necessary?  If you only ask for POLLIN, won't you only get POLLIN?