summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Usyskin2015-10-13 14:02:41 +0200
committerGreg Kroah-Hartman2015-10-18 06:45:05 +0200
commitedf5600870121f83a20157d102ad12211c226ee0 (patch)
treecde015ce24697dcdbcc90743f8f6de20c744cea0 /drivers
parentmei: bus: fix c&p issue in the kdoc (diff)
downloadkernel-qcow2-linux-edf5600870121f83a20157d102ad12211c226ee0.tar.gz
kernel-qcow2-linux-edf5600870121f83a20157d102ad12211c226ee0.tar.xz
kernel-qcow2-linux-edf5600870121f83a20157d102ad12211c226ee0.zip
mei: amthif: Do not compare bool to 0/1
Spotted by coccicheck: drivers/misc/mei/amthif.c:479:5-26: WARNING: Comparison of bool to 0/1 Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/mei/amthif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c
index 1e42781592d8..cd0403f09267 100644
--- a/drivers/misc/mei/amthif.c
+++ b/drivers/misc/mei/amthif.c
@@ -458,7 +458,7 @@ void mei_amthif_complete(struct mei_device *dev, struct mei_cl_cb *cb)
return;
}
- if (dev->iamthif_canceled != 1) {
+ if (!dev->iamthif_canceled) {
dev->iamthif_state = MEI_IAMTHIF_READ_COMPLETE;
dev->iamthif_stall_timer = 0;
list_add_tail(&cb->list, &dev->amthif_rd_complete_list.list);