Commit 77121d52 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman
Browse files

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: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 51935d22
Loading
Loading
Loading
Loading
+38 −41
Original line number Diff line number Diff line
@@ -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);