commit | 912ed8afd6432f1c7c084ccd752139debc2f7014 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Tue Dec 19 17:35:30 2017 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jan 02 17:09:29 2018 +0100 |
tree | 2e464ea111fc50d820e351622bd63363af097c74 | |
parent | cc365dcf0e56271bedf3de95f88922abe248e951 [diff] |
mei: fix incorrect logical operator in if statement The current expression using the || operator is always true because dev->dev_state cannot be equal to two different values at the same time. Fix this by replacing the || with &&. Detected by CoverityScan, CID#1463042 ("Constant expression result") Fixes: 8d52af6795c0 ("mei: speed up the power down flow") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>