diff options
author | Giulio Benetti <giulio.benetti@micronovasrl.com> | 2018-10-06 00:59:50 +0300 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-11-06 18:55:24 +0300 |
commit | 7f4cedd882f7cae83177066c2b239ef457ce4a42 (patch) | |
tree | 016de1a53bbe2bc25c70ce834533089fac2db49f /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
download | linux-7f4cedd882f7cae83177066c2b239ef457ce4a42.tar.xz |
drm/sun4i: tcon: fix check of tcon->panel null pointer
Since tcon->panel is a pointer returned by of_drm_find_panel() need to
check if it is not NULL, hence a valid pointer.
IS_ERR() instead checks return error values, not NULL pointers.
Substitute "if (!IS_ERR(tcon->panel))" with "if (tcon->panel)".
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181005215951.99003-1-giulio.benetti@micronovasrl.com
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions