Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0936a944 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Herbert Xu
Browse files

[CRYPTO] hifn: Simplify code using ARRAY_SIZE() macro

parent feedfdaa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -895,7 +895,7 @@ static int hifn_enable_crypto(struct hifn_device *dev)
	char *offtbl = NULL;
	int i;

	for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) {
	for (i = 0; i < ARRAY_SIZE(pci2id); i++) {
		if (pci2id[i].pci_vendor == dev->pdev->vendor &&
				pci2id[i].pci_prod == dev->pdev->device) {
			offtbl = pci2id[i].card_id;