]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/drivers/net/mlx4/mlx4_utils.c
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / drivers / net / mlx4 / mlx4_utils.c
index a727d703653c66f94275516eb362719a476bb934..614dc197d98aff6862602935a0d0df46310c9be0 100644 (file)
@@ -8,7 +8,6 @@
  * Utility functions used by the mlx4 driver.
  */
 
-#include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stddef.h>
@@ -36,7 +35,7 @@ mlx4_fd_set_non_blocking(int fd)
 
        if (ret != -1 && !fcntl(fd, F_SETFL, ret | O_NONBLOCK))
                return 0;
-       assert(errno);
+       MLX4_ASSERT(errno);
        rte_errno = errno;
        return -rte_errno;
 }