Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1ffa894 authored by Gulsah Kose's avatar Gulsah Kose Committed by Greg Kroah-Hartman
Browse files

staging: ft1000: ft1000-usb: Removed unnecessary else statement.



This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning in ft1000_download.c

Signed-off-by: default avatarGulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c89e6be7
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -129,10 +129,9 @@ static int check_usb_db(struct ft1000_usb *ft1000dev)
			status = ft1000_write_register(ft1000dev,  0x8000,
						FT1000_REG_DOORBELL);
			break;
		} else {
		}
		loopcnt++;
		msleep(10);
		}

	}

@@ -190,11 +189,10 @@ static u16 get_handshake(struct ft1000_usb *ft1000dev, u16 expected_value)
		if ((handshake == expected_value) ||
		    (handshake == HANDSHAKE_RESET_VALUE_USB)) {
			return handshake;
		} else	{
		}
		loopcnt++;
		msleep(10);
	}
	}

	return HANDSHAKE_TIMEOUT_VALUE;
}