diff options
author | Marcus Fritzsch <marcus.fritzsch@xse.de> | 2014-07-21 16:47:51 +0200 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2014-08-12 22:15:12 +0900 |
commit | 113e255f912619239e72094473014c9c7a498c6e (patch) | |
tree | e1b6fa47ffea9896cf38889e858c0090342b4332 | |
parent | aeb980a31890466bb1e2f316a9082ac86272c038 (diff) | |
download | wayland-ivi-extension-113e255f912619239e72094473014c9c7a498c6e.tar.gz |
ilmControl: Removed some unnecessary NULL checks
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
-rw-r--r-- | ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c index dcdcbbc..af5fb26 100644 --- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c +++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c @@ -810,10 +810,8 @@ controller_surface_listener_configuration_child(void *data, { struct surface_context *ctx_surf = data; - if (ctx_surf != NULL) { - ctx_surf->prop.sourceWidth = (t_ilm_uint)width; - ctx_surf->prop.sourceHeight = (t_ilm_uint)height; - } + ctx_surf->prop.sourceWidth = (t_ilm_uint)width; + ctx_surf->prop.sourceHeight = (t_ilm_uint)height; } static void @@ -907,9 +905,7 @@ controller_surface_listener_pixelformat_child(void *data, { struct surface_context *ctx_surf = data; - if (ctx_surf != NULL) { - ctx_surf->prop.pixelformat = (t_ilm_uint)pixelformat; - } + ctx_surf->prop.pixelformat = (t_ilm_uint)pixelformat; } static void |