The socket pointers in fifoinfo are not permitted to be NULL, so

don't check if they are, it just confuses the fifo code more.

MFC after:	3 days
This commit is contained in:
Robert Watson 2005-09-15 15:45:34 +00:00
parent 68ff2a4397
commit ca17bccaa1

@ -674,7 +674,6 @@ fifo_poll_f(struct file *fp, int events, struct ucred *cred, struct thread *td)
filetmp.f_data = fip->fi_readsock; filetmp.f_data = fip->fi_readsock;
filetmp.f_cred = cred; filetmp.f_cred = cred;
if (filetmp.f_data)
revents |= soo_poll(&filetmp, levents, cred, td); revents |= soo_poll(&filetmp, levents, cred, td);
/* Reverse the above conversion. */ /* Reverse the above conversion. */
@ -687,10 +686,8 @@ fifo_poll_f(struct file *fp, int events, struct ucred *cred, struct thread *td)
if ((fp->f_flag & FWRITE) && levents) { if ((fp->f_flag & FWRITE) && levents) {
filetmp.f_data = fip->fi_writesock; filetmp.f_data = fip->fi_writesock;
filetmp.f_cred = cred; filetmp.f_cred = cred;
if (filetmp.f_data) {
revents |= soo_poll(&filetmp, levents, cred, td); revents |= soo_poll(&filetmp, levents, cred, td);
} }
}
return (revents); return (revents);
} }