Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754402Ab0F1L4h (ORCPT ); Mon, 28 Jun 2010 07:56:37 -0400 Received: from fg-out-1718.google.com ([72.14.220.159]:29378 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754084Ab0F1Lzc (ORCPT ); Mon, 28 Jun 2010 07:55:32 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=Wxxqhctwk+LUKChD3zNdxtu28k33NyrqijdCEh0d8leaYt3LNg9Jp8+f+PiPkVwYuP GutDaiiDczvMHyqJQX95WMsE1aMw+DHmomBZgG7GNCY/A+aBLIh2yGF+kKuWViRhcb73 c7IEqCMTHDHaYvxT9ZinF/Kc+m58HvqKGKyiA= From: Kulikov Vasiliy To: trivial@kernel.org Cc: Kernel Janitors , Greg Kroah-Hartman , Julia Lawall , Kulikov Vasiliy , Herton Ronaldo Krzesinski , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/16] trivial: use ARRAY_SIZE Date: Mon, 28 Jun 2010 15:55:28 +0400 Message-Id: <1277726130-24798-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: 1166 Lines: 28 Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy --- drivers/staging/rtl8192e/ieee80211/ieee80211_wx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_wx.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_wx.c index 4971b1c..068cc06 100644 --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_wx.c +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_wx.c @@ -121,7 +121,7 @@ static inline char *rtl819x_translate_scan(struct ieee80211_device *ieee, } /* Add the protocol name */ iwe.cmd = SIOCGIWNAME; - for(i=0; i<(sizeof(ieee80211_modes)/sizeof(ieee80211_modes[0])); i++) { + for(i=0; imode&(1<