diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2015-03-26 18:27:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 10:18:56 -0400 |
commit | f3de9b635d93a3d268adda428e1df94091506a42 (patch) | |
tree | 6b58047776ca5c84302360cc82ca5c874ef0528c /drivers/misc/mei/interrupt.c | |
parent | 1d9013f09203c694e2cba478b05afc6484d55180 (diff) |
mei: use mei_cl_is_connected consistently
Replace open coded check for cl->state !=/== MEI_FILE_CONNECTED
with mei_cl_is_connected function.
Note that cl->state != MEI_FILE_CONNECTED is not the same
as cl->state == MEI_FILE_DISCONNECTED
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/interrupt.c')
-rw-r--r-- | drivers/misc/mei/interrupt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 3f23629759db..3f84d2edcde4 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -110,7 +110,7 @@ int mei_cl_irq_read_msg(struct mei_cl *cl, | |||
110 | goto out; | 110 | goto out; |
111 | } | 111 | } |
112 | 112 | ||
113 | if (cl->state != MEI_FILE_CONNECTED) { | 113 | if (!mei_cl_is_connected(cl)) { |
114 | cl_dbg(dev, cl, "not connected\n"); | 114 | cl_dbg(dev, cl, "not connected\n"); |
115 | cb->status = -ENODEV; | 115 | cb->status = -ENODEV; |
116 | goto out; | 116 | goto out; |