ilmControl: Removed some unnecessary NULL checks
authorMarcus Fritzsch <marcus.fritzsch@xse.de>
Mon, 21 Jul 2014 14:47:51 +0000 (16:47 +0200)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Tue, 12 Aug 2014 13:15:12 +0000 (22:15 +0900)
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c

index dcdcbbc..af5fb26 100644 (file)
@@ -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