diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2013-10-21 15:05:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 19:20:43 -0400 |
commit | df667a1a2c6bf828c5959a0ba15bcf987a9d17fe (patch) | |
tree | 6074c93d14e6c724a6b4ecd0cb9d3ac314d3d6e3 | |
parent | f931f4f3f0e2be1a6c5278ab9488652f98ba2f9c (diff) |
mei: mei_cl_link remove duplicated check for open_handle_count
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/mei/client.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c index 0ccc22ce0904..87c96e4669e2 100644 --- a/drivers/misc/mei/client.c +++ b/drivers/misc/mei/client.c | |||
@@ -299,12 +299,6 @@ int mei_cl_link(struct mei_cl *cl, int id) | |||
299 | return -EMFILE; | 299 | return -EMFILE; |
300 | } | 300 | } |
301 | 301 | ||
302 | if (dev->open_handle_count >= MEI_MAX_OPEN_HANDLE_COUNT) { | ||
303 | dev_err(&dev->pdev->dev, "open_handle_count exceded %d", | ||
304 | MEI_MAX_OPEN_HANDLE_COUNT); | ||
305 | return -ENOENT; | ||
306 | } | ||
307 | |||
308 | dev->open_handle_count++; | 302 | dev->open_handle_count++; |
309 | 303 | ||
310 | cl->host_client_id = id; | 304 | cl->host_client_id = id; |