mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-27 05:32:27 +00:00
Staging: rt2870: Hoist assign from if
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
6aed5295ae
commit
699910dd75
@ -474,7 +474,8 @@ void RTUSBBulkOutDataPacket(struct rt_rtmp_adapter *pAd,
|
|||||||
(usb_complete_t) RTUSBBulkOutDataPacketComplete);
|
(usb_complete_t) RTUSBBulkOutDataPacketComplete);
|
||||||
|
|
||||||
pUrb = pHTTXContext->pUrb;
|
pUrb = pHTTXContext->pUrb;
|
||||||
if ((ret = RTUSB_SUBMIT_URB(pUrb)) != 0) {
|
ret = RTUSB_SUBMIT_URB(pUrb);
|
||||||
|
if (ret != 0) {
|
||||||
DBGPRINT(RT_DEBUG_ERROR,
|
DBGPRINT(RT_DEBUG_ERROR,
|
||||||
("RTUSBBulkOutDataPacket: Submit Tx URB failed %d\n",
|
("RTUSBBulkOutDataPacket: Submit Tx URB failed %d\n",
|
||||||
ret));
|
ret));
|
||||||
@ -572,7 +573,8 @@ void RTUSBBulkOutNullFrame(struct rt_rtmp_adapter *pAd)
|
|||||||
(usb_complete_t) RTUSBBulkOutNullFrameComplete);
|
(usb_complete_t) RTUSBBulkOutNullFrameComplete);
|
||||||
|
|
||||||
pUrb = pNullContext->pUrb;
|
pUrb = pNullContext->pUrb;
|
||||||
if ((ret = RTUSB_SUBMIT_URB(pUrb)) != 0) {
|
ret = RTUSB_SUBMIT_URB(pUrb);
|
||||||
|
if (ret != 0) {
|
||||||
RTMP_IRQ_LOCK(&pAd->BulkOutLock[0], IrqFlags);
|
RTMP_IRQ_LOCK(&pAd->BulkOutLock[0], IrqFlags);
|
||||||
pAd->BulkOutPending[0] = FALSE;
|
pAd->BulkOutPending[0] = FALSE;
|
||||||
pAd->watchDogTxPendingCnt[0] = 0;
|
pAd->watchDogTxPendingCnt[0] = 0;
|
||||||
@ -666,7 +668,8 @@ void RTUSBBulkOutMLMEPacket(struct rt_rtmp_adapter *pAd, u8 Index)
|
|||||||
pUrb->transfer_flags &= (~URB_NO_TRANSFER_DMA_MAP);
|
pUrb->transfer_flags &= (~URB_NO_TRANSFER_DMA_MAP);
|
||||||
|
|
||||||
pUrb = pMLMEContext->pUrb;
|
pUrb = pMLMEContext->pUrb;
|
||||||
if ((ret = RTUSB_SUBMIT_URB(pUrb)) != 0) {
|
ret = RTUSB_SUBMIT_URB(pUrb);
|
||||||
|
if (ret != 0) {
|
||||||
DBGPRINT(RT_DEBUG_ERROR,
|
DBGPRINT(RT_DEBUG_ERROR,
|
||||||
("RTUSBBulkOutMLMEPacket: Submit MLME URB failed %d\n",
|
("RTUSBBulkOutMLMEPacket: Submit MLME URB failed %d\n",
|
||||||
ret));
|
ret));
|
||||||
@ -741,7 +744,8 @@ void RTUSBBulkOutPsPoll(struct rt_rtmp_adapter *pAd)
|
|||||||
(usb_complete_t) RTUSBBulkOutPsPollComplete);
|
(usb_complete_t) RTUSBBulkOutPsPollComplete);
|
||||||
|
|
||||||
pUrb = pPsPollContext->pUrb;
|
pUrb = pPsPollContext->pUrb;
|
||||||
if ((ret = RTUSB_SUBMIT_URB(pUrb)) != 0) {
|
ret = RTUSB_SUBMIT_URB(pUrb);
|
||||||
|
if (ret != 0) {
|
||||||
RTMP_IRQ_LOCK(&pAd->BulkOutLock[0], IrqFlags);
|
RTMP_IRQ_LOCK(&pAd->BulkOutLock[0], IrqFlags);
|
||||||
pAd->BulkOutPending[0] = FALSE;
|
pAd->BulkOutPending[0] = FALSE;
|
||||||
pAd->watchDogTxPendingCnt[0] = 0;
|
pAd->watchDogTxPendingCnt[0] = 0;
|
||||||
@ -798,7 +802,8 @@ void DoBulkIn(struct rt_rtmp_adapter *pAd)
|
|||||||
RTUSBInitRxDesc(pAd, pRxContext);
|
RTUSBInitRxDesc(pAd, pRxContext);
|
||||||
|
|
||||||
pUrb = pRxContext->pUrb;
|
pUrb = pRxContext->pUrb;
|
||||||
if ((ret = RTUSB_SUBMIT_URB(pUrb)) != 0) { /* fail */
|
ret = RTUSB_SUBMIT_URB(pUrb);
|
||||||
|
if (ret != 0) { /* fail */
|
||||||
|
|
||||||
RTMP_IRQ_LOCK(&pAd->BulkInLock, IrqFlags);
|
RTMP_IRQ_LOCK(&pAd->BulkInLock, IrqFlags);
|
||||||
pRxContext->InUse = FALSE;
|
pRxContext->InUse = FALSE;
|
||||||
|
@ -1167,11 +1167,10 @@ void CMDHandler(struct rt_rtmp_adapter *pAd)
|
|||||||
(usb_complete_t)
|
(usb_complete_t)
|
||||||
RTUSBBulkOutDataPacketComplete);
|
RTUSBBulkOutDataPacketComplete);
|
||||||
|
|
||||||
if ((ret =
|
ret = RTUSB_SUBMIT_URB
|
||||||
RTUSB_SUBMIT_URB
|
|
||||||
(pHTTXContext->
|
(pHTTXContext->
|
||||||
pUrb)) !=
|
pUrb);
|
||||||
0) {
|
if (ret != 0) {
|
||||||
RTMP_INT_LOCK
|
RTMP_INT_LOCK
|
||||||
(&pAd->
|
(&pAd->
|
||||||
BulkOutLock
|
BulkOutLock
|
||||||
@ -1540,7 +1539,8 @@ void CMDHandler(struct rt_rtmp_adapter *pAd)
|
|||||||
RTUSBInitRxDesc(pAd,
|
RTUSBInitRxDesc(pAd,
|
||||||
pRxContext);
|
pRxContext);
|
||||||
pUrb = pRxContext->pUrb;
|
pUrb = pRxContext->pUrb;
|
||||||
if ((ret = RTUSB_SUBMIT_URB(pUrb)) != 0) { /* fail */
|
ret = RTUSB_SUBMIT_URB(pUrb);
|
||||||
|
if (ret != 0) { /* fail */
|
||||||
|
|
||||||
RTMP_IRQ_LOCK
|
RTMP_IRQ_LOCK
|
||||||
(&pAd->
|
(&pAd->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user