- /* remove tx/conn from conn's outgoing queue */
- cfs_spin_lock_bh (&conn->ksnc_scheduler->kss_lock);
- cfs_list_del(&tx->tx_list);
- if (cfs_list_empty(&conn->ksnc_tx_queue)) {
- cfs_list_del (&conn->ksnc_tx_list);
- }
- cfs_spin_unlock_bh (&conn->ksnc_scheduler->kss_lock);
+ /* remove tx/conn from conn's outgoing queue */
+ spin_lock_bh(&conn->ksnc_scheduler->kss_lock);
+ cfs_list_del(&tx->tx_list);
+ if (cfs_list_empty(&conn->ksnc_tx_queue))
+ cfs_list_del(&conn->ksnc_tx_list);
+
+ spin_unlock_bh(&conn->ksnc_scheduler->kss_lock);