]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm/amd/display: Fix warnings about uninitialized use
authorHarry Wentland <harry.wentland@amd.com>
Wed, 9 Aug 2017 01:01:20 +0000 (21:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:16:29 +0000 (18:16 -0400)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/i2caux/i2caux.c

index 72eb6af62f457987c68c72ec3b12d28ea3a431fc..b858fec72bd7467f495723f395ddb394575107e6 100644 (file)
@@ -541,7 +541,7 @@ bool dc_link_detect(struct dc_link *link, bool boot)
        struct audio_support *aud_support = &link->dc->res_pool->audio_support;
        enum dc_edid_status edid_status;
        struct dc_context *dc_ctx = link->ctx;
-       struct dc_sink *sink;
+       struct dc_sink *sink = NULL;
        enum dc_connection_type new_connection_type = dc_connection_none;
 
        if (link->connector_signal == SIGNAL_TYPE_VIRTUAL)
index da08cc1c6dc320f24d09052391160732db0ba996..4035caf47d31a9c9a248abe281d5b4c156db5fea 100644 (file)
@@ -265,6 +265,8 @@ static bool get_hw_supported_ddc_line(
 {
        enum gpio_ddc_line line_found;
 
+       *line = GPIO_DDC_LINE_UNKNOWN;
+
        if (!ddc) {
                BREAK_TO_DEBUGGER();
                return false;