summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2011-07-06 18:07:24 -0700
committerRebecca Schultz Zavin <rebecca@android.com>2011-07-06 18:13:19 -0700
commit6d3b958d705055bc7b3bbc4e85f2270d5a449a0f (patch)
treed1300922a43283d507097db34bc5847f958d32a2 /drivers/gpu
parent0b7e8ae7e4c780251482f702f5a2680707c5346e (diff)
gpu: ion: Remove redunant code from ion_open
ion_client_create now does a lookup, so this need not also be done from ion_open Change-Id: Icb101bbf514bf2e40b4b5d9b320130bf185349aa Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/ion/ion.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/ion/ion.c b/drivers/gpu/ion/ion.c
index f11a566f9a7..1c25940a1fd 100644
--- a/drivers/gpu/ion/ion.c
+++ b/drivers/gpu/ion/ion.c
@@ -1011,13 +1011,9 @@ static int ion_open(struct inode *inode, struct file *file)
struct ion_client *client;
pr_debug("%s: %d\n", __func__, __LINE__);
- client = ion_client_lookup(dev, current->group_leader);
- if (IS_ERR_OR_NULL(client)) {
- /* XXX: consider replacing "user" with cmdline */
- client = ion_client_create(dev, -1, "user");
- if (IS_ERR_OR_NULL(client))
- return PTR_ERR(client);
- }
+ client = ion_client_create(dev, -1, "user");
+ if (IS_ERR_OR_NULL(client))
+ return PTR_ERR(client);
file->private_data = client;
return 0;