summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/client.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-10-21 22:05:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-29 16:20:43 -0700
commitdf667a1a2c6bf828c5959a0ba15bcf987a9d17fe (patch)
tree6074c93d14e6c724a6b4ecd0cb9d3ac314d3d6e3 /drivers/misc/mei/client.c
parentf931f4f3f0e2be1a6c5278ab9488652f98ba2f9c (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>
Diffstat (limited to 'drivers/misc/mei/client.c')
-rw-r--r--drivers/misc/mei/client.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c
index 0ccc22ce090..87c96e4669e 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)
return -EMFILE;
}
- if (dev->open_handle_count >= MEI_MAX_OPEN_HANDLE_COUNT) {
- dev_err(&dev->pdev->dev, "open_handle_count exceded %d",
- MEI_MAX_OPEN_HANDLE_COUNT);
- return -ENOENT;
- }
-
dev->open_handle_count++;
cl->host_client_id = id;