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
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) · 139 unmodified lines
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) · 64 unmodified lines
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)

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