Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Meadhbh Fitzpatrick <meadhbh.fitzpatrick@intel.com>
To: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org
Cc: Meadhbh Fitzpatrick <meadhbh.fitzpatrick@intel.com>,
	Giovanni Cabiddu <giovanni.cabiddu@intel.com>,
	Damian Muszynski <damian.muszynski@intel.com>
Subject: [PATCH] crypto: qat - change size of status variable
Date: Thu,  9 Mar 2023 11:33:06 +0000	[thread overview]
Message-ID: <20230309113306.4008-1-meadhbh.fitzpatrick@intel.com> (raw)

The `status` variable is of type int but it is used to store the
output of an s8 type returned by the functions
qat_comp_get_xlt_status() and qat_comp_get_cmp_status().

Declare `status` as `s8` to match the output type of the two functions.

This commit does not implement any functional changes.

Signed-off-by: Meadhbh Fitzpatrick <meadhbh.fitzpatrick@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Damian Muszynski <damian.muszynski@intel.com>
---
 drivers/crypto/qat/qat_common/qat_comp_algs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/qat/qat_common/qat_comp_algs.c b/drivers/crypto/qat/qat_common/qat_comp_algs.c
index b533984906ec..726b71d2a4a8 100644
--- a/drivers/crypto/qat/qat_common/qat_comp_algs.c
+++ b/drivers/crypto/qat/qat_common/qat_comp_algs.c
@@ -183,7 +183,7 @@ static void qat_comp_generic_callback(struct qat_compression_req *qat_req,
 	int consumed, produced;
 	s8 cmp_err, xlt_err;
 	int res = -EBADMSG;
-	int status;
+	s8 status;
 	u8 cnv;
 
 	status = qat_comp_get_cmp_status(resp);
-- 
2.37.3

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.


             reply	other threads:[~2023-03-09 10:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-09 11:33 Meadhbh Fitzpatrick [this message]
2023-03-09 10:39 ` [PATCH] crypto: qat - change size of status variable Herbert Xu
2023-03-09 11:04   ` Giovanni Cabiddu
2023-03-10  4:17     ` Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230309113306.4008-1-meadhbh.fitzpatrick@intel.com \
    --to=meadhbh.fitzpatrick@intel.com \
    --cc=damian.muszynski@intel.com \
    --cc=giovanni.cabiddu@intel.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox