projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feedfda
)
[CRYPTO] hifn: Simplify code using ARRAY_SIZE() macro
author
Robert P. J. Day
<rpjday@crashcourse.ca>
Mon, 26 May 2008 11:21:07 +0000
(21:21 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 10 Jul 2008 12:35:15 +0000
(20:35 +0800)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hifn_795x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/crypto/hifn_795x.c
b/drivers/crypto/hifn_795x.c
index d0f71a1c1a4b538c5b3fa8a0c957b3c203585d25..4d22b21bd3e30ad872adaef9b87cd003904832bd 100644
(file)
--- a/
drivers/crypto/hifn_795x.c
+++ b/
drivers/crypto/hifn_795x.c
@@
-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;