Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Cosmetic: use the idiom &ic->ic_nw_keys[0] inste...



details:   https://anonhg.NetBSD.org/src/rev/a81d97005beb
branches:  trunk
changeset: 582819:a81d97005beb
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Jul 07 00:43:01 2005 +0000

description:
Cosmetic: use the idiom &ic->ic_nw_keys[0] instead of ic->ic_nw_keys,
just be a little more parallel to &ic->ic_nw_keys[IEEE80211_WEP_NKID]
on the same line.

diffstat:

 sys/dev/pci/if_iwi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a124d496c908 -r a81d97005beb sys/dev/pci/if_iwi.c
--- a/sys/dev/pci/if_iwi.c      Thu Jul 07 00:12:22 2005 +0000
+++ b/sys/dev/pci/if_iwi.c      Thu Jul 07 00:43:01 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwi.c,v 1.10 2005/06/25 04:02:45 dyoung Exp $  */
+/*     $NetBSD: if_iwi.c,v 1.11 2005/07/07 00:43:01 dyoung Exp $  */
 
 /*-
  * Copyright (c) 2004, 2005
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwi.c,v 1.10 2005/06/25 04:02:45 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwi.c,v 1.11 2005/07/07 00:43:01 dyoung Exp $");
 
 /*-
  * Intel(R) PRO/Wireless 2200BG/2915ABG driver
@@ -559,7 +559,7 @@
 static int
 iwi_key_alloc(struct ieee80211com *ic, const struct ieee80211_key *k)
 {
-       if (k >= ic->ic_nw_keys && k < &ic->ic_nw_keys[IEEE80211_WEP_NKID])
+       if (k >= &ic->ic_nw_keys[0] && k < &ic->ic_nw_keys[IEEE80211_WEP_NKID])
                return k - ic->ic_nw_keys;
 
        return IEEE80211_KEYIX_NONE;



Home | Main Index | Thread Index | Old Index