Module Name: src
Committed By: khorben
Date: Mon Jan 9 10:42:45 UTC 2017
Modified Files:
src/sys/dev/pci: if_iwm.c
Log Message:
Do not use the "flags" field uninitialized
A backport if iwm(4) (to netbsd-7) does not build without this change.
LGTM nonaka@
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/pci/if_iwm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_iwm.c
diff -u src/sys/dev/pci/if_iwm.c:1.54 src/sys/dev/pci/if_iwm.c:1.55
--- src/sys/dev/pci/if_iwm.c:1.54 Mon Jan 9 09:15:54 2017
+++ src/sys/dev/pci/if_iwm.c Mon Jan 9 10:42:45 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.54 2017/01/09 09:15:54 nonaka Exp $ */
+/* $NetBSD: if_iwm.c,v 1.55 2017/01/09 10:42:45 khorben Exp $ */
/* OpenBSD: if_iwm.c,v 1.147 2016/11/17 14:12:33 stsp Exp */
#define IEEE80211_NO_HT
/*
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.54 2017/01/09 09:15:54 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.55 2017/01/09 10:42:45 khorben Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -4500,6 +4500,8 @@ iwm_power_update_device(struct iwm_softc
struct iwm_device_power_cmd cmd = {
#ifdef notyet
.flags = htole16(IWM_DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK),
+#else
+ .flags = 0,
#endif
};