Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753061Ab0F1Lzb (ORCPT ); Mon, 28 Jun 2010 07:55:31 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:48266 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753868Ab0F1LzX (ORCPT ); Mon, 28 Jun 2010 07:55:23 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=melmbZYv1t22pdJeUz37O9oJKUT/+oflrNPaT6rjeXZLUZFv68xwYAjLjpJ1iqp29Q MH4GWqNHHCkXy9fbbOxQ+UweAh3IkaXNX3rxrRSRkf009h9cc0ASrO6+vvNnrbJwTRi8 NBAZNAskde1QYiPjHsKbsp0tTgGuPENOplOZk= From: Kulikov Vasiliy To: trivial@kernel.org Cc: Kernel Janitors , Greg Kroah-Hartman , Kulikov Vasiliy , Simon Horman , Julia Lawall , Joe Perches , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/16] trivial: use ARRAY_SIZE Date: Mon, 28 Jun 2010 15:55:20 +0400 Message-Id: <1277726121-24732-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: 3696 Lines: 110 Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/staging/otus/hal/hpmain.c | 28 ++++++++++------------------ 1 files changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/staging/otus/hal/hpmain.c b/drivers/staging/otus/hal/hpmain.c index 5f412e0..6d2d358 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