[ofw] patch: [bus] fix minor issue found in prefast

Tzachi Dar tzachid at mellanox.co.il
Sun Nov 15 10:05:08 PST 2009


signed off by: urih
 
Index: Q:/projinf3/trunk/hw/mlx4/kernel/bus/net/port.c
===================================================================
--- Q:/projinf3/trunk/hw/mlx4/kernel/bus/net/port.c (revision 4959)
+++ Q:/projinf3/trunk/hw/mlx4/kernel/bus/net/port.c (revision 4960)
@@ -55,7 +55,7 @@
  int i;
 
  sema_init(&table->vlan_sem, 1);
- for (i = 0; i < MLX4_MAX_MAC_NUM; i++) {
+ for (i = 0; i < MLX4_MAX_VLAN_NUM; i++) {
   table->entries[i] = 0;
   table->refs[i] = 0;
  }
Index: Q:/projinf3/trunk/hw/mlx4/kernel/bus/drv/wmi.c
===================================================================
--- Q:/projinf3/trunk/hw/mlx4/kernel/bus/drv/wmi.c (revision 4959)
+++ Q:/projinf3/trunk/hw/mlx4/kernel/bus/drv/wmi.c (revision 4960)
@@ -44,14 +44,11 @@
 {
  WDF_WMI_PROVIDER_CONFIG providerConfig;
  WDF_WMI_INSTANCE_CONFIG instanceConfig;
- PFDO_DEVICE_DATA deviceData;
  NTSTATUS status;
  DECLARE_CONST_UNICODE_STRING(busRsrcName, BUSRESOURCENAME);
 
  PAGED_CODE();
 
- deviceData = FdoGetData(Device);
-
  //
  // Register WMI classes.
  // First specify the resource name which contain the binary mof
resource.
Index: Q:/projinf3/trunk/hw/mlx4/kernel/hca/wmi.c
===================================================================
--- Q:/projinf3/trunk/hw/mlx4/kernel/hca/wmi.c (revision 4959)
+++ Q:/projinf3/trunk/hw/mlx4/kernel/hca/wmi.c (revision 4960)
@@ -59,14 +59,11 @@
 {
  WDF_WMI_PROVIDER_CONFIG providerConfig;
  WDF_WMI_INSTANCE_CONFIG instanceConfig;
- PFDO_DEVICE_DATA deviceData;
  NTSTATUS status;
  DECLARE_CONST_UNICODE_STRING(hcaRsrcName, HCARESOURCENAME);
 
  PAGED_CODE();
 
- deviceData = FdoGetData(Device);
-
  //
  // Register WMI classes.
  // First specify the resource name which contain the binary mof
resource.

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20091115/6192e979/attachment.html>


More information about the ofw mailing list