ivi-shell: remove some unnecessary checks
Both functions are callbacks that are added when the ivi_shell_surface is created and removed when it is destroyed, so get_ivi_shell_surface() will never return NULL here. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
This commit is contained in:
parent
2c96bdbdbf
commit
f7609553a9
|
@ -121,10 +121,6 @@ ivi_shell_surface_committed(struct weston_surface *surface,
|
|||
{
|
||||
struct ivi_shell_surface *ivisurf = get_ivi_shell_surface(surface);
|
||||
|
||||
assert(ivisurf);
|
||||
if (!ivisurf)
|
||||
return;
|
||||
|
||||
if (surface->width == 0 || surface->height == 0)
|
||||
return;
|
||||
|
||||
|
@ -145,9 +141,6 @@ ivi_shell_surface_get_label(struct weston_surface *surface,
|
|||
{
|
||||
struct ivi_shell_surface *shell_surf = get_ivi_shell_surface(surface);
|
||||
|
||||
if (!shell_surf)
|
||||
return snprintf(buf, len, "unidentified window in ivi-shell");
|
||||
|
||||
return snprintf(buf, len, "ivi-surface %#x", shell_surf->id_surface);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue