Commit 6cfa0152 authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman
Browse files

staging: ced1401: ced_ioc.c: remove else branch in ced_wait_event



Fix checkpatch warning "else is not generally useful after a break or return" in
file ced_ioc.c, function ced_wait_event()

Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c626bd5b
Loading
Loading
Loading
Loading
+33 −32
Original line number Diff line number Diff line
@@ -887,12 +887,13 @@ int ced_set_event(struct ced_data *ced, struct transfer_event __user *ute)
int ced_wait_event(struct ced_data *ced, int area, int time_out)
{
	int ret;
	int wait;
	struct transarea *ta;

	if ((unsigned)area >= MAX_TRANSAREAS)
		return U14ERR_BADAREA;
	else {
		int wait;
		struct transarea *ta = &ced->trans_def[area];

	ta = &ced->trans_def[area];

	 /* convert timeout to jiffies */
	time_out = (time_out * HZ + 999) / 1000;
@@ -928,7 +929,7 @@ int ced_wait_event(struct ced_data *ced, int area, int time_out)
	spin_lock_irq(&ced->staged_lock);
	ta->wake_up = 0;	/*  clear the flag */
	spin_unlock_irq(&ced->staged_lock);
	}

	return ret;
}