mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 04:26:42 +07:00
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 <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
61082bf696
commit
6ad6e21bd4
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user