Merge tag 'rproc-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson...
[linux-2.6-microblaze.git] / drivers / misc / xilinx_sdfec.c
index 23c8448..d6e3c65 100644 (file)
@@ -1013,9 +1013,6 @@ static __poll_t xsdfec_poll(struct file *file, poll_table *wait)
 
        xsdfec = container_of(file->private_data, struct xsdfec_dev, miscdev);
 
-       if (!xsdfec)
-               return EPOLLNVAL | EPOLLHUP;
-
        poll_wait(file, &xsdfec->waitq, wait);
 
        /* XSDFEC ISR detected an error */