Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: rt2860: fix coding style issue in rt_usb.c

This is a patch to the rt_usb.c file that fixes up errors found by the
checkpatch.pl tool

Signed-off-by: Gorskin Ilya <revent82@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Gorskin Ilya and committed by
Greg Kroah-Hartman
3d401c96 015ffcbe

+7 -13
+7 -13
drivers/staging/rt2860/rt_usb.c
··· 233 233 FREE_HTTX_RING(pAd, BulkOutPipeId, pHTTXContext); 234 234 /*RTMP_IRQ_UNLOCK(&pAd->TxContextQueueLock[BulkOutPipeId], IrqFlags); */ 235 235 236 - } else /* STATUS_OTHER */ 237 - { 236 + } else { /* STATUS_OTHER */ 238 237 u8 *pBuf; 239 238 240 239 pAd->BulkOutCompleteOther++; ··· 315 316 RTMP_IRQ_UNLOCK(&pAd->BulkOutLock[0], irqFlag); 316 317 317 318 RTMPDeQueuePacket(pAd, FALSE, NUM_OF_TX_RING, MAX_TX_PROCESS); 318 - } else /* STATUS_OTHER */ 319 - { 319 + } else { /* STATUS_OTHER */ 320 320 if ((!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_RESET_IN_PROGRESS)) && 321 321 (!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_HALT_IN_PROGRESS)) && 322 322 (!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_NIC_NOT_EXIST)) && ··· 360 362 if (Status == USB_ST_NOERROR) { 361 363 RTMP_IRQ_UNLOCK(&pAd->BulkOutLock[0], irqFlag); 362 364 RTMPDeQueuePacket(pAd, FALSE, NUM_OF_TX_RING, MAX_TX_PROCESS); 363 - } else /* STATUS_OTHER */ 364 - { 365 + } else { /* STATUS_OTHER */ 365 366 if ((!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_RESET_IN_PROGRESS)) && 366 367 (!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_HALT_IN_PROGRESS)) && 367 368 (!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_NIC_NOT_EXIST)) && ··· 407 410 408 411 if (Status == USB_ST_NOERROR) { 409 412 RTMPDeQueuePacket(pAd, FALSE, NUM_OF_TX_RING, MAX_TX_PROCESS); 410 - } else /* STATUS_OTHER */ 411 - { 413 + } else { /* STATUS_OTHER */ 412 414 if ((!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_RESET_IN_PROGRESS)) && 413 415 (!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_HALT_IN_PROGRESS)) && 414 416 (!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_NIC_NOT_EXIST)) && ··· 469 473 if (Status == USB_ST_NOERROR) { 470 474 pAd->BulkInComplete++; 471 475 pAd->NextRxBulkInPosition = 0; 472 - if (pRxContext->BulkInOffset) /* As jan's comment, it may bulk-in success but size is zero. */ 473 - { 476 + if (pRxContext->BulkInOffset) { /* As jan's comment, it may bulk-in success but size is zero. */ 474 477 pRxContext->Readable = TRUE; 475 478 INC_RING_INDEX(pAd->NextRxBulkInIndex, RX_RING_SIZE); 476 479 } 477 480 RTMP_IRQ_UNLOCK(&pAd->BulkInLock, IrqFlags); 478 - } else /* STATUS_OTHER */ 479 - { 481 + } else { /* STATUS_OTHER */ 480 482 pAd->BulkInCompleteFail++; 481 483 /* Still read this packet although it may comtain wrong bytes. */ 482 484 pRxContext->Readable = FALSE; ··· 578 584 /* The protectioon of rest bulk should be in BulkOut routine */ 579 585 if (pAd->MgmtRing.TxSwFreeIdx < 580 586 MGMT_RING_SIZE 581 - /* pMLMEContext->bWaitingBulkOut == TRUE */ ) { 587 + /* pMLMEContext->bWaitingBulkOut == TRUE */) { 582 588 RTUSB_SET_BULK_FLAG(pAd, fRTUSB_BULK_OUT_MLME); 583 589 } 584 590 RTUSBKickBulkOut(pAd);