Skip to content

Commit fcf5d2d

Browse files
montjoieherbertx
authored andcommitted
crypto: sun8i-ss - 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 25d85ff commit fcf5d2d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static struct sun8i_ss_alg_template ss_algs[] = {
414414
static int sun8i_ss_debugfs_show(struct seq_file *seq, void *v)
415415
{
416416
struct sun8i_ss_dev *ss = seq->private;
417-
int i;
417+
unsigned int i;
418418

419419
for (i = 0; i < MAXFLOW; i++)
420420
seq_printf(seq, "Channel %d: nreq %lu\n", i, ss->flows[i].stat_req);
@@ -560,7 +560,8 @@ static void sun8i_ss_pm_exit(struct sun8i_ss_dev *ss)
560560

561561
static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss)
562562
{
563-
int ss_method, err, id, i;
563+
int ss_method, err, id;
564+
unsigned int i;
564565

565566
for (i = 0; i < ARRAY_SIZE(ss_algs); i++) {
566567
ss_algs[i].ss = ss;
@@ -631,7 +632,7 @@ static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss)
631632

632633
static void sun8i_ss_unregister_algs(struct sun8i_ss_dev *ss)
633634
{
634-
int i;
635+
unsigned int i;
635636

636637
for (i = 0; i < ARRAY_SIZE(ss_algs); i++) {
637638
if (!ss_algs[i].ss)

0 commit comments

Comments
 (0)