[ofw] [PATCH] incorrect application of '&'
Smith, Stan
stan.smith at intel.com
Mon Jul 11 16:55:20 PDT 2011
Hello,
'g_bus_filters' is defined as ' extern bus_filter_t g_bus_filters[MAX_BUS_FILTERS]' hence the '&' operator is unnecessary and misleading.
Remove the unnecessary '&' operator.
Signed-off-by: stan smith <stan.smith at intel.com>
--- core/bus/kernel/bus_driver.c Mon Jul 11 16:22:10 2011
+++ core/bus/kernel/bus_driver.c Wed Jun 29 15:26:49 2011
@@ -1086,7 +1086,7 @@
KeInitializeEvent(&g_ControlEvent, SynchronizationEvent, TRUE);
g_bfi_InstanceCount = 0;
- memset( (void*)&g_bus_filters, 0, sizeof(g_bus_filters) );
+ memset( (void*)g_bus_filters, 0, sizeof(g_bus_filters) );
BUS_TRACE_EXIT( BUS_DBG_DRV,
("=====> IBBUS: Driver exited\n") );
More information about the ofw
mailing list