From: Tobin C. Harding Date: Wed, 22 Mar 2017 02:06:26 +0000 (+1100) Subject: staging: ks7010: remove redundant check X-Git-Tag: v4.12-rc1~84^2~359 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6ad6e21bd4e4edd1a3f59dc74b5f238455c05e71;p=karo-tx-linux.git 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: Tobin C. Harding Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 38ea7a27bc08..d329735fda1d 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -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]);