summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-10-21 21:05:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-30 00:20:43 +0100
commitdf667a1a2c6bf828c5959a0ba15bcf987a9d17fe (patch)
tree6074c93d14e6c724a6b4ecd0cb9d3ac314d3d6e3 /drivers/misc
parentmei: print correct device state during unexpected reset (diff)
downloadlinux-df667a1a2c6bf828c5959a0ba15bcf987a9d17fe.tar.xz
linux-df667a1a2c6bf828c5959a0ba15bcf987a9d17fe.zip
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')
-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 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)
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;