Skip to content

Commit 25d85ff

Browse files
montjoieherbertx
authored andcommitted
crypto: sun8i-ce - fix comparison of integer expressions of different signedness
This patch fixes the warning: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 4a07eab commit 25d85ff

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ static struct sun8i_ce_alg_template ce_algs[] = {
566566
static int sun8i_ce_debugfs_show(struct seq_file *seq, void *v)
567567
{
568568
struct sun8i_ce_dev *ce = seq->private;
569-
int i;
569+
unsigned int i;
570570

571571
for (i = 0; i < MAXFLOW; i++)
572572
seq_printf(seq, "Channel %d: nreq %lu\n", i, ce->chanlist[i].stat_req);
@@ -767,7 +767,8 @@ static int sun8i_ce_get_clks(struct sun8i_ce_dev *ce)
767767

768768
static int sun8i_ce_register_algs(struct sun8i_ce_dev *ce)
769769
{
770-
int ce_method, err, id, i;
770+
int ce_method, err, id;
771+
unsigned int i;
771772

772773
for (i = 0; i < ARRAY_SIZE(ce_algs); i++) {
773774
ce_algs[i].ce = ce;
@@ -847,7 +848,7 @@ static int sun8i_ce_register_algs(struct sun8i_ce_dev *ce)
847848

848849
static void sun8i_ce_unregister_algs(struct sun8i_ce_dev *ce)
849850
{
850-
int i;
851+
unsigned int i;
851852

852853
for (i = 0; i < ARRAY_SIZE(ce_algs); i++) {
853854
if (!ce_algs[i].ce)

0 commit comments

Comments
 (0)