From: Tomas Winkler Date: Mon, 21 Oct 2013 19:05:41 +0000 (+0300) Subject: mei: mei_cl_link remove duplicated check for open_handle_count X-Git-Tag: firefly_0821_release~176^2~5060^2~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df667a1a2c6bf828c5959a0ba15bcf987a9d17fe;p=firefly-linux-kernel-4.4.55.git mei: mei_cl_link remove duplicated check for open_handle_count Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- 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;