[ofw] [PATCH] IPoIB: Fix whitespace in __ipoib_pnp_cb
Fab Tillier
ftillier at windows.microsoft.com
Wed May 27 09:39:51 PDT 2009
Some of the case statements in the big switch statement where improperly indented. This patch fixes this.
Signed-off-by: Fab Tillier <ftillier at microsoft.com>
Index: ulp/ipoib/kernel/ipoib_adapter.c
===================================================================
--- ulp/ipoib/kernel/ipoib_adapter.c (revision 2205)
+++ ulp/ipoib/kernel/ipoib_adapter.c (working copy)
@@ -742,24 +742,24 @@ __ipoib_pnp_cb(
/* We ignore events below if the link is not active. */
if( p_port_rec->p_port_attr->link_state != IB_LINK_ACTIVE )
- break;
+ break;
- case IB_PNP_PKEY_CHANGE:
- if(p_pnp_rec->pnp_event == IB_PNP_PKEY_CHANGE &&
- p_adapter->guids.port_guid.pkey != IB_DEFAULT_PKEY)
+ case IB_PNP_PKEY_CHANGE:
+ if(p_pnp_rec->pnp_event == IB_PNP_PKEY_CHANGE &&
+ p_adapter->guids.port_guid.pkey != IB_DEFAULT_PKEY)
+ {
+ status = ipoib_query_pkey_index(p_adapter);
+ if(status != IB_SUCCESS)
{
- status = ipoib_query_pkey_index(p_adapter);
- if(status != IB_SUCCESS)
- {
- cl_obj_lock( &p_adapter->obj );
- p_adapter->state = IB_PNP_PORT_INIT;
- cl_obj_unlock( &p_adapter->obj );
- }
+ cl_obj_lock( &p_adapter->obj );
+ p_adapter->state = IB_PNP_PORT_INIT;
+ cl_obj_unlock( &p_adapter->obj );
}
+ }
- case IB_PNP_SM_CHANGE:
- case IB_PNP_GID_CHANGE:
- case IB_PNP_LID_CHANGE:
+ case IB_PNP_SM_CHANGE:
+ case IB_PNP_GID_CHANGE:
+ case IB_PNP_LID_CHANGE:
cl_obj_lock( &p_adapter->obj );
old_state = p_adapter->state;
@@ -773,7 +773,7 @@ __ipoib_pnp_cb(
p_adapter->state = IB_PNP_PORT_DOWN;
}
cl_obj_unlock( &p_adapter->obj );
-
+
if( p_adapter->registering )
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipoib_ws.patch
Type: application/octet-stream
Size: 1567 bytes
Desc: ipoib_ws.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090527/0f7e9678/attachment.obj>
More information about the ofw
mailing list