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

Commit 6ad6e21b authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Greg Kroah-Hartman
Browse files

staging: ks7010: remove redundant check



Function checks for condition inside a loop that checks the same
condition, this is redundant. Fix also removes checkpatch CHECK.

Remove redundant check.

Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 61082bf6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2608,8 +2608,7 @@ void hostif_sme_task(unsigned long dev)
	DPRINTK(3, "\n");

	if (priv->dev_state >= DEVICE_STATE_BOOT) {
		if (cnt_smeqbody(priv) > 0
		    && priv->dev_state >= DEVICE_STATE_BOOT) {
		if (cnt_smeqbody(priv) > 0) {
			hostif_sme_execute(priv,
					   priv->sme_i.event_buff[priv->sme_i.
								  qhead]);