Staging: bcm: Remove unnecessary "do while" statement in, IOCTL_BCM_BUFFER_DOWNLOAD
This patch removes a superfluous "do while" statement in IOCTL_BCM_BUFFER_DOWNLOAD. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
51935d2259
commit
77121d52a4
1 changed files with 46 additions and 49 deletions
|
@ -792,7 +792,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
|
|||
case IOCTL_BCM_BUFFER_DOWNLOAD: {
|
||||
FIRMWARE_INFO *psFwInfo = NULL;
|
||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Starting the firmware download PID =0x%x!!!!\n", current->pid);
|
||||
do {
|
||||
|
||||
if (!down_trylock(&Adapter->fw_download_sema)) {
|
||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0,
|
||||
"Invalid way to download buffer. Use Start and then call this!!!\n");
|
||||
|
@ -842,9 +842,6 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
|
|||
wake_up(&Adapter->LEDInfo.notify_led_event);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
} while (0);
|
||||
|
||||
if (Status != STATUS_SUCCESS)
|
||||
up(&Adapter->fw_download_sema);
|
||||
|
|
Loading…
Reference in a new issue