Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755373Ab0GALXL (ORCPT ); Thu, 1 Jul 2010 07:23:11 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:45265 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753752Ab0GALXA (ORCPT ); Thu, 1 Jul 2010 07:23:00 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=oiGw224TwRbodxnlyDwMUeaW2ch//bl5amMnhrOww4m+aUcXFfYsUxeJ0iH1npgGcF vIjsRKky4DizQx72pkh0KOHd1xmzb24wlxjXGvxCgKqNF56svJywJQV1bububZtzuT2N HwsbT2NEkHeaiAQBcixrWrhPSGkuZCpGF1kEo= From: Kulikov Vasiliy To: Kernel Janitors Cc: Greg Kroah-Hartman , Simon Horman , Julia Lawall , Joe Perches , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/16] staging/otus: use ARRAY_SIZE Date: Thu, 1 Jul 2010 15:22:55 +0400 Message-Id: <1277983377-29390-1-git-send-email-segooon@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3717 Lines: 113 Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/staging/otus/hal/hpmain.c | 42 ++++++++---------------------------- 1 files changed, 10 insertions(+), 32 deletions(-) diff --git a/drivers/staging/otus/hal/hpmain.c b/drivers/staging/otus/hal/hpmain.c index 5f412e0..cc543fd 100644 --- a/drivers/staging/otus/hal/hpmain.c +++ b/drivers/staging/otus/hal/hpmain.c @@ -430,7 +430,7 @@ void zfInitPhy(zdev_t* dev, u32_t frequency, u8_t bw40) * Register setting by mode */ - entries = sizeof(ar5416Modes) / sizeof(*ar5416Modes); + entries = ARRAY_SIZE(ar5416Modes); zm_msg1_scan(ZM_LV_2, "Modes register setting entries=", entries); for (i=0; i