Message ID | 1439462512-1911-2-git-send-email-anil.gurumurthy@qlogic.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, 2015-08-13 at 06:41 -0400, anil.gurumurthy@qlogic.com wrote: > From: Anil Gurumurthy <anil.gurumurthy@qlogic.com> > > Signed-off-by: Anil Gurumurthy <anil.gurumurthy@qlogic.com> > Tested-by : Sudarasana Kalluru <sudarsana.kalluru@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 <emilne@redhat.com> -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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; } /*