net/txgbe: fix queue statistics mapping
[dpdk.git] / drivers / crypto / ipsec_mb / ipsec_mb_private.h
index 866722d..e53101a 100644 (file)
@@ -191,13 +191,13 @@ ipsec_mb_parse_xform(const struct rte_crypto_sym_xform *xform,
                        const struct rte_crypto_sym_xform **cipher_xform,
                        const struct rte_crypto_sym_xform **aead_xform)
 {
-       const struct rte_crypto_sym_xform *next = xform->next;
-
        if (xform == NULL) {
                *mode = IPSEC_MB_OP_NOT_SUPPORTED;
                return -ENOTSUP;
        }
 
+       const struct rte_crypto_sym_xform *next = xform->next;
+
        if (xform->type == RTE_CRYPTO_SYM_XFORM_CIPHER) {
                if (next == NULL) {
                        if (xform->cipher.op == RTE_CRYPTO_CIPHER_OP_ENCRYPT) {