On Thu, 2015-08-13 at 06:41 -0400, anil.gurumur...@qlogic.com wrote: > From: Anil Gurumurthy <anil.gurumur...@qlogic.com> > > Signed-off-by: Anil Gurumurthy <anil.gurumur...@qlogic.com> > Tested-by : Sudarasana Kalluru <sudarsana.kall...@qlogic.com> > --- > drivers/scsi/bfa/bfa_ioc.c | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) > > diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c > index 315d6d6..4e71044 100644 > --- a/drivers/scsi/bfa/bfa_ioc.c > +++ b/drivers/scsi/bfa/bfa_ioc.c > @@ -3665,19 +3665,19 @@ bfa_cb_sfp_state_query(struct bfa_sfp_s *sfp) > if (sfp->state_query_cbfn) > sfp->state_query_cbfn(sfp->state_query_cbarg, > sfp->status); > - sfp->media = NULL; > - } > + sfp->media = NULL; > + } > > - if (sfp->portspeed) { > - sfp->status = bfa_sfp_speed_valid(sfp, sfp->portspeed); > - if (sfp->state_query_cbfn) > - sfp->state_query_cbfn(sfp->state_query_cbarg, > - sfp->status); > - sfp->portspeed = BFA_PORT_SPEED_UNKNOWN; > - } > + if (sfp->portspeed) { > + sfp->status = bfa_sfp_speed_valid(sfp, sfp->portspeed); > + if (sfp->state_query_cbfn) > + sfp->state_query_cbfn(sfp->state_query_cbarg, > + sfp->status); > + sfp->portspeed = BFA_PORT_SPEED_UNKNOWN; > + } > > - sfp->state_query_lock = 0; > - sfp->state_query_cbfn = NULL; > + sfp->state_query_lock = 0; > + sfp->state_query_cbfn = NULL; > } > > /*
Reviewed-by: Ewan D. Milne <emi...@redhat.com> -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html