projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7e8ae
)
gpu: ion: Remove redunant code from ion_open
author
Rebecca Schultz Zavin
<rebecca@android.com>
Thu, 7 Jul 2011 01:07:24 +0000
(18:07 -0700)
committer
Rebecca Schultz Zavin
<rebecca@android.com>
Thu, 7 Jul 2011 01:13:19 +0000
(18:13 -0700)
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>
drivers/gpu/ion/ion.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/ion/ion.c
b/drivers/gpu/ion/ion.c
index f11a566f9a7723a4920ef99f28c12d6c6a036f2c..1c25940a1fd12a8766a42fbfb6d69962111c8b08 100644
(file)
--- 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;