x11: Remove unnecessary NULL checks
Output and mode can never be NULL. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
24c0f83778
commit
76932e6b0f
@@ -807,16 +807,6 @@ x11_output_switch_mode(struct weston_output *base, struct weston_mode *mode)
|
|||||||
static uint32_t values[2];
|
static uint32_t values[2];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (base == NULL) {
|
|
||||||
weston_log("output is NULL.\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mode == NULL) {
|
|
||||||
weston_log("mode is NULL.\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
b = to_x11_backend(base->compositor);
|
b = to_x11_backend(base->compositor);
|
||||||
output = to_x11_output(base);
|
output = to_x11_output(base);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user