projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c0f83
)
x11: Remove unnecessary NULL checks
author
Daniel Stone
<daniels@collabora.com>
Fri, 6 Mar 2020 13:11:41 +0000
(13:11 +0000)
committer
Pekka Paalanen
<pq@iki.fi>
Fri, 20 Mar 2020 15:25:24 +0000
(15:25 +0000)
Output and mode can never be NULL.
Signed-off-by: Daniel Stone <daniels@collabora.com>
libweston/backend-x11/x11.c
patch
|
blob
|
history
diff --git
a/libweston/backend-x11/x11.c
b/libweston/backend-x11/x11.c
index 5fda05685c09a9ca4d87ded7e9ee3e6520f96adb..6d558edb8eb76e84fddbf3541a879c56954d9ea0 100644
(file)
--- a/
libweston/backend-x11/x11.c
+++ b/
libweston/backend-x11/x11.c
@@
-807,16
+807,6
@@
x11_output_switch_mode(struct weston_output *base, struct weston_mode *mode)
static uint32_t values[2];
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);
output = to_x11_output(base);