crypto/qat: remove unused arguments
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 13 Jun 2018 12:14:18 +0000 (14:14 +0200)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 27 Jun 2018 23:25:33 +0000 (01:25 +0200)
Process response function is only implemented
for crypto symmetric operations, which do not require
some of the arguments.
Therefore, these arguments can be removed from the
function prototype.

Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_qp.c
drivers/crypto/qat/qat_qp.h
drivers/crypto/qat/qat_sym.c
drivers/crypto/qat/qat_sym.h

index b84ba64..0fdec0d 100644 (file)
@@ -612,9 +612,7 @@ qat_dequeue_op_burst(void *qp, void **ops, uint16_t nb_ops)
        while (*(uint32_t *)resp_msg != ADF_RING_EMPTY_SIG &&
                        resp_counter != nb_ops) {
 
-               tmp_qp->process_response(ops, resp_msg,
-                       tmp_qp->op_cookies[head / rx_queue->msg_size],
-                       tmp_qp->qat_dev_gen);
+               tmp_qp->process_response(ops, resp_msg);
 
                head = adf_modulo(head + rx_queue->msg_size,
                                  rx_queue->modulo_mask);
index 764125d..eb91884 100644 (file)
@@ -21,9 +21,7 @@ typedef int (*build_request_t)(void *op,
                enum qat_device_gen qat_dev_gen);
 /**< Build a request from an op. */
 
-typedef int (*process_response_t)(void **ops,
-               uint8_t *resp, void *op_cookie,
-               enum qat_device_gen qat_dev_gen);
+typedef int (*process_response_t)(void **ops, uint8_t *resp);
 /**< Process a response descriptor and return the associated op. */
 
 /**
index 15244d1..f613adc 100644 (file)
@@ -661,9 +661,7 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg,
 }
 
 int
-qat_sym_process_response(void **op, uint8_t *resp,
-               __rte_unused void *op_cookie,
-               __rte_unused enum qat_device_gen qat_dev_gen)
+qat_sym_process_response(void **op, uint8_t *resp)
 {
 
        struct icp_qat_fw_comn_resp *resp_msg =
index bdb672b..dffd5f3 100644 (file)
@@ -22,8 +22,6 @@ int
 qat_sym_build_request(void *in_op, uint8_t *out_msg,
                void *op_cookie, enum qat_device_gen qat_dev_gen);
 int
-qat_sym_process_response(void **op, uint8_t *resp,
-               __rte_unused void *op_cookie,
-               __rte_unused enum qat_device_gen qat_dev_gen);
+qat_sym_process_response(void **op, uint8_t *resp);
 
 #endif /* _QAT_SYM_H_ */