diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2013-09-16 16:44:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-03 19:01:16 -0400 |
commit | af68fb65557dee58918822a470cd64fd76ed837e (patch) | |
tree | aedc4fd5843228b96894c870d30846d6ffcd2293 /drivers | |
parent | 22f96a0eb6c62b570621d77dacbf2589a6de2997 (diff) |
mei: amthif: mei_amthif_host_init: propagate errors from called functions
propagate error codes from called functions, they are correct.
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.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c index 4f259d411a2c..d22c6864508b 100644 --- a/drivers/misc/mei/amthif.c +++ b/drivers/misc/mei/amthif.c | |||
@@ -79,8 +79,10 @@ int mei_amthif_host_init(struct mei_device *dev) | |||
79 | 79 | ||
80 | i = mei_me_cl_by_uuid(dev, &mei_amthif_guid); | 80 | i = mei_me_cl_by_uuid(dev, &mei_amthif_guid); |
81 | if (i < 0) { | 81 | if (i < 0) { |
82 | dev_info(&dev->pdev->dev, "amthif: failed to find the client\n"); | 82 | ret = i; |
83 | return -ENOENT; | 83 | dev_info(&dev->pdev->dev, |
84 | "amthif: failed to find the client %d\n", ret); | ||
85 | return ret; | ||
84 | } | 86 | } |
85 | 87 | ||
86 | cl->me_client_id = dev->me_clients[i].client_id; | 88 | cl->me_client_id = dev->me_clients[i].client_id; |
@@ -107,8 +109,9 @@ int mei_amthif_host_init(struct mei_device *dev) | |||
107 | ret = mei_cl_link(cl, MEI_IAMTHIF_HOST_CLIENT_ID); | 109 | ret = mei_cl_link(cl, MEI_IAMTHIF_HOST_CLIENT_ID); |
108 | 110 | ||
109 | if (ret < 0) { | 111 | if (ret < 0) { |
110 | dev_err(&dev->pdev->dev, "amthif: failed link client\n"); | 112 | dev_err(&dev->pdev->dev, |
111 | return -ENOENT; | 113 | "amthif: failed link client %d\n", ret); |
114 | return ret; | ||
112 | } | 115 | } |
113 | 116 | ||
114 | cl->state = MEI_FILE_CONNECTING; | 117 | cl->state = MEI_FILE_CONNECTING; |