aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/hifn_795x.c
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2008-05-26 07:21:07 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2008-07-10 08:35:15 -0400
commit0936a944068ef68f8b19f437e03f4654c29f2423 (patch)
treec1ad9338c2a492b1e49305557dfaadc38893777e /drivers/crypto/hifn_795x.c
parentfeedfdaa7bc02694c122d2d5246184248fb04513 (diff)
[CRYPTO] hifn: Simplify code using ARRAY_SIZE() macro
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hifn_795x.c')
-rw-r--r--drivers/crypto/hifn_795x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index d0f71a1c1a4b..4d22b21bd3e3 100644
--- 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)
895 char *offtbl = NULL; 895 char *offtbl = NULL;
896 int i; 896 int i;
897 897
898 for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) { 898 for (i = 0; i < ARRAY_SIZE(pci2id); i++) {
899 if (pci2id[i].pci_vendor == dev->pdev->vendor && 899 if (pci2id[i].pci_vendor == dev->pdev->vendor &&
900 pci2id[i].pci_prod == dev->pdev->device) { 900 pci2id[i].pci_prod == dev->pdev->device) {
901 offtbl = pci2id[i].card_id; 901 offtbl = pci2id[i].card_id;