summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2009-02-05 17:10:50 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2009-02-05 17:10:50 +0000
commitdd76134399b1c6652a01c80bbb78f3abd95a03ac (patch)
tree4033b4af58ba9bf4722ac6464ecf82e125627489
parent34d3a61dd4c4cefaa9451e67c512271fbe4a3da5 (diff)
fix uninitialized var (in a code path that is not used yet).
found by chl@ using llvm/clang
-rw-r--r--sys/dev/pci/if_wpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c
index bf4a7fe9c75..ba528f11afe 100644
--- a/sys/dev/pci/if_wpi.c
+++ b/sys/dev/pci/if_wpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wpi.c,v 1.82 2009/01/26 19:18:52 damien Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.83 2009/02/05 17:10:49 damien Exp $ */
/*-
* Copyright (c) 2006-2008
@@ -2447,6 +2447,7 @@ wpi_set_pslevel(struct wpi_softc *sc, int dtim, int level, int async)
skip_dtim = pmgt->skip_dtim;
if (skip_dtim != 0) {
cmd.flags |= htole16(WPI_PS_SLEEP_OVER_DTIM);
+ max = pmgt->intval[4];
if (max == (uint32_t)-1)
max = dtim * (skip_dtim + 1);
else if (max > dtim)