Re: [PATCH v6] crypto: qat - replace the if statement with min()
From: Herbert Xu
Date: Fri Jul 14 2023 - 04:57:29 EST
On Tue, Jul 04, 2023 at 08:45:32PM +0800, You Kangren wrote:
> Mark UWORD_CPYBUF_SIZE with U suffix to make its type the same
> with words_num. Then replace the if statement with min() in
> qat_uclo_wr_uimage_raw_page() to make code shorter.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Signed-off-by: You Kangren <youkangren@xxxxxxxx>
> ---
> Changelog:
> v5->v6:
> - Remove the unnecessary Fixes tag of the patch
> - Change the first letter of "replace" in the headline of the commit message to lower case
>
> v4->v5:
> - Add the Fixes and Reviewed-by tags of the patch
> - Add the version update information of the patch
>
> v3->v4:
> - Remove the header file <linux/minmax.h> in v3
>
> v2->v3:
> - Add a header file <linux/minmax.h>
> - Mark UWORD_CPYBUF_SIZE with U suffix
> - Change min_t() to min() in qat_uclo_wr_uimage_raw_page()
>
> v1->v2:
> - Change min() to min_t() in qat_uclo_wr_uimage_raw_page()
>
> drivers/crypto/intel/qat/qat_common/qat_uclo.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt