remove unnecessary null checks
[dpdk.git] / lib / eal / linux / eal_interrupts.c
index 15a27a2..70060bf 100644 (file)
@@ -589,7 +589,7 @@ rte_intr_callback_unregister_pending(const struct rte_intr_handle *intr_handle,
 
        rte_spinlock_lock(&intr_lock);
 
-       /* check if the insterrupt source for the fd is existent */
+       /* check if the interrupt source for the fd is existent */
        TAILQ_FOREACH(src, &intr_sources, next) {
                if (rte_intr_fd_get(src->intr_handle) == rte_intr_fd_get(intr_handle))
                        break;
@@ -639,7 +639,7 @@ rte_intr_callback_unregister(const struct rte_intr_handle *intr_handle,
 
        rte_spinlock_lock(&intr_lock);
 
-       /* check if the insterrupt source for the fd is existent */
+       /* check if the interrupt source for the fd is existent */
        TAILQ_FOREACH(src, &intr_sources, next)
                if (rte_intr_fd_get(src->intr_handle) == rte_intr_fd_get(intr_handle))
                        break;
@@ -947,17 +947,14 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds)
                        bytes_read = sizeof(buf.timerfd_num);
                        break;
 #ifdef VFIO_PRESENT
+#ifdef HAVE_VFIO_DEV_REQ_INTERFACE
+               case RTE_INTR_HANDLE_VFIO_REQ:
+#endif
                case RTE_INTR_HANDLE_VFIO_MSIX:
                case RTE_INTR_HANDLE_VFIO_MSI:
                case RTE_INTR_HANDLE_VFIO_LEGACY:
                        bytes_read = sizeof(buf.vfio_intr_count);
                        break;
-#ifdef HAVE_VFIO_DEV_REQ_INTERFACE
-               case RTE_INTR_HANDLE_VFIO_REQ:
-                       bytes_read = 0;
-                       call = true;
-                       break;
-#endif
 #endif
                case RTE_INTR_HANDLE_VDEV:
                case RTE_INTR_HANDLE_EXT: