diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2014-03-31 16:59:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-04 01:21:23 +0200 |
commit | 86113500c060bccb0f08bdcadcecc0bd267fd25a (patch) | |
tree | f195af9c5646f13d87bb0c4541dd3ac9c66da91c /drivers/misc/mei/client.c | |
parent | mei: extract fw status registers (diff) | |
download | linux-86113500c060bccb0f08bdcadcecc0bd267fd25a.tar.xz linux-86113500c060bccb0f08bdcadcecc0bd267fd25a.zip |
mei: make return values consistent across the driver
Follow-up for bits missed in
commit 7ca96aa278f8b9983184e318b06a0ed9ad0297b8
mei: make return values consistent across the driver
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/misc/mei/client.c')
-rw-r--r-- | drivers/misc/mei/client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c index 9273e89e6a15..3349f626aa88 100644 --- a/drivers/misc/mei/client.c +++ b/drivers/misc/mei/client.c @@ -768,10 +768,9 @@ int mei_cl_read_start(struct mei_cl *cl, size_t length) cb->fop_type = MEI_FOP_READ; if (mei_hbuf_acquire(dev)) { - if (mei_hbm_cl_flow_control_req(dev, cl)) { - rets = -ENODEV; + rets = mei_hbm_cl_flow_control_req(dev, cl); + if (rets < 0) goto out; - } list_add_tail(&cb->list, &dev->read_list.list); } else { |