@@ -491,7 +491,7 @@ irqreturn_t qlcnic_83xx_clear_legacy_intr(struct qlcnic_adapter *adapter)
491
491
492
492
static inline void qlcnic_83xx_notify_mbx_response (struct qlcnic_mailbox * mbx )
493
493
{
494
- atomic_set ( & mbx -> rsp_status , QLC_83XX_MBX_RESPONSE_ARRIVED ) ;
494
+ mbx -> rsp_status = QLC_83XX_MBX_RESPONSE_ARRIVED ;
495
495
complete (& mbx -> completion );
496
496
}
497
497
@@ -510,7 +510,7 @@ static void qlcnic_83xx_poll_process_aen(struct qlcnic_adapter *adapter)
510
510
if (event & QLCNIC_MBX_ASYNC_EVENT ) {
511
511
__qlcnic_83xx_process_aen (adapter );
512
512
} else {
513
- if (atomic_read ( & mbx -> rsp_status ) != rsp_status )
513
+ if (mbx -> rsp_status != rsp_status )
514
514
qlcnic_83xx_notify_mbx_response (mbx );
515
515
}
516
516
out :
@@ -1023,7 +1023,7 @@ static void qlcnic_83xx_process_aen(struct qlcnic_adapter *adapter)
1023
1023
if (event & QLCNIC_MBX_ASYNC_EVENT ) {
1024
1024
__qlcnic_83xx_process_aen (adapter );
1025
1025
} else {
1026
- if (atomic_read ( & mbx -> rsp_status ) != rsp_status )
1026
+ if (mbx -> rsp_status != rsp_status )
1027
1027
qlcnic_83xx_notify_mbx_response (mbx );
1028
1028
}
1029
1029
}
@@ -4050,7 +4050,6 @@ static void qlcnic_83xx_mailbox_worker(struct work_struct *work)
4050
4050
struct qlcnic_adapter * adapter = mbx -> adapter ;
4051
4051
const struct qlcnic_mbx_ops * mbx_ops = mbx -> ops ;
4052
4052
struct device * dev = & adapter -> pdev -> dev ;
4053
- atomic_t * rsp_status = & mbx -> rsp_status ;
4054
4053
struct list_head * head = & mbx -> cmd_q ;
4055
4054
struct qlcnic_hardware_context * ahw ;
4056
4055
struct qlcnic_cmd_args * cmd = NULL ;
@@ -4063,7 +4062,7 @@ static void qlcnic_83xx_mailbox_worker(struct work_struct *work)
4063
4062
return ;
4064
4063
}
4065
4064
4066
- atomic_set ( rsp_status , QLC_83XX_MBX_RESPONSE_WAIT ) ;
4065
+ mbx -> rsp_status = QLC_83XX_MBX_RESPONSE_WAIT ;
4067
4066
4068
4067
spin_lock (& mbx -> queue_lock );
4069
4068
0 commit comments