projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e3f15f
)
e_foreign_shell: Remove redundant NULL check
02/261602/1
author
Seunghun Lee
<shiin.lee@samsung.com>
Thu, 22 Jul 2021 02:31:56 +0000
(11:31 +0900)
committer
Seunghun Lee
<shiin.lee@samsung.com>
Thu, 22 Jul 2021 02:56:18 +0000
(11:56 +0900)
_e_exported_shell_find_by_surface() is called from
e_foreign_shell_export() where the surface parameter is already
validated prior to the call. This makes the 'surface' NULL check
redundant.
Change-Id: I619a3e8e1bdeb9eb1ebeb89e79a8eabe2aa9316e
src/bin/e_foreign_shell.c
patch
|
blob
|
history
diff --git
a/src/bin/e_foreign_shell.c
b/src/bin/e_foreign_shell.c
index a94dd2cec65601ef17a67c170be0ac9b9f93ec8c..c15bd4778569fbba393a56d56ab6fb769b39bf93 100644
(file)
--- a/
src/bin/e_foreign_shell.c
+++ b/
src/bin/e_foreign_shell.c
@@
-217,8
+217,6
@@
_e_exported_shell_find_by_surface(struct wl_resource *surface)
E_Client *ec;
Eina_Iterator *it;
- EINA_SAFETY_ON_NULL_RETURN_VAL(surface, NULL);
-
ec = wl_resource_get_user_data(surface);
it = eina_hash_iterator_data_new(_exported_shell_hash);