Message ID | 1618839289-33224-9-git-send-email-humin29@huawei.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Thomas Monjalon |
Headers | show |
Series | fixes for clean code | expand |
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
diff --git a/drivers/crypto/virtio/virtio_rxtx.c b/drivers/crypto/virtio/virtio_rxtx.c index e1cb4ad..a35a5b0 100644 --- a/drivers/crypto/virtio/virtio_rxtx.c +++ b/drivers/crypto/virtio/virtio_rxtx.c @@ -500,10 +500,10 @@ virtio_crypto_pkt_tx_burst(void *tx_queue, struct rte_crypto_op **tx_pkts, /* Enqueue Packet buffers */ error = virtqueue_crypto_enqueue_xmit(txvq, tx_pkts[nb_tx]); if (unlikely(error)) { - if (error == ENOSPC) + if (error == -ENOSPC) VIRTIO_CRYPTO_TX_LOG_ERR( "virtqueue_enqueue Free count = 0"); - else if (error == EMSGSIZE) + else if (error == -EMSGSIZE) VIRTIO_CRYPTO_TX_LOG_ERR( "virtqueue_enqueue Free count < 1"); else