History

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]

Corentin Labbe committed 6 years ago

Commit fcf5d2d1 parent 25d85ff1 file · +4 −3Browse files

Unified · Split

drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c+4−3
@@ -414,7 +414,7 @@ static struct sun8i_ss_alg_template ss_algs[] = { · 413 unmodified lines
414static int sun8i_ss_debugfs_show(struct seq_file *seq, void *v)414static int sun8i_ss_debugfs_show(struct seq_file *seq, void *v)
415{415{
416 struct sun8i_ss_dev *ss = seq->private;416 struct sun8i_ss_dev *ss = seq->private;
417 int i;417 unsigned int i;
418 418
419 for (i = 0; i < MAXFLOW; i++)419 for (i = 0; i < MAXFLOW; i++)
420 seq_printf(seq, "Channel %d: nreq %lu\n", i, ss->flows[i].stat_req);420 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) · 139 unmodified lines
560 560
561static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss)561static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss)
562{562{
563 int ss_method, err, id, i;563 int ss_method, err, id;
564 unsigned int i;
564 565
565 for (i = 0; i < ARRAY_SIZE(ss_algs); i++) {566 for (i = 0; i < ARRAY_SIZE(ss_algs); i++) {
566 ss_algs[i].ss = ss;567 ss_algs[i].ss = ss;
@@ -631,7 +632,7 @@ static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss) · 64 unmodified lines
631 632
632static void sun8i_ss_unregister_algs(struct sun8i_ss_dev *ss)633static void sun8i_ss_unregister_algs(struct sun8i_ss_dev *ss)
633{634{
634 int i;635 unsigned int i;
635 636
636 for (i = 0; i < ARRAY_SIZE(ss_algs); i++) {637 for (i = 0; i < ARRAY_SIZE(ss_algs); i++) {
637 if (!ss_algs[i].ss)638 if (!ss_algs[i].ss)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t