amdgpu/dc: remove various variables that are defined but never used
authorColin Ian King <colin.king@canonical.com>
Tue, 18 Dec 2018 13:05:54 +0000 (13:05 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:43 +0000 (15:04 -0500)
There are several variables that are defined and never used and hence can
be removed. Remove them. Cleans up clang -Wunused-const-variable warnings:

warning: ‘dvi_hdmi_dongle_signature_str’ defined but not used
warning: ‘dce11_one_lpt_channel_max_resolution’ defined but not used
warning: ‘ddc_hw_status_addr’ defined but not used

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c
drivers/gpu/drm/amd/display/dc/i2caux/dce80/i2c_sw_engine_dce80.c

index 506a97e1695621e18a4273c1eb3921a38b665ec3..99a314b79850632f680777df5c3839a99063f647 100644 (file)
@@ -42,7 +42,6 @@
 #define CV_SMART_DONGLE_ADDRESS 0x20
 /* DVI-HDMI dongle slave address for retrieving dongle signature*/
 #define DVI_HDMI_DONGLE_ADDRESS 0x68
-static const int8_t dvi_hdmi_dongle_signature_str[] = "6140063500G";
 struct dvi_hdmi_dongle_signature_data {
        int8_t vendor[3];/* "AMD" */
        uint8_t version[2];
index 52d50e24a99538ac04cafaf58b1446ab71cc5385..7b23239d33fedfb164e17b958b8d73255aeae361 100644 (file)
@@ -62,8 +62,6 @@ static const struct dce110_compressor_reg_offsets reg_offsets[] = {
 }
 };
 
-static const uint32_t dce11_one_lpt_channel_max_resolution = 2560 * 1600;
-
 static uint32_t align_to_chunks_number_per_line(uint32_t pixels)
 {
        return 256 * ((pixels + 255) / 256);
index 4853ee26096a2a57bfb488dc75414c481a53d92e..c9d6cf08e8abbd248d782358a77d7e4b0800e5a2 100644 (file)
  * This unit
  */
 
-static const uint32_t ddc_hw_status_addr[] = {
-       mmDC_I2C_DDC1_HW_STATUS,
-       mmDC_I2C_DDC2_HW_STATUS,
-       mmDC_I2C_DDC3_HW_STATUS,
-       mmDC_I2C_DDC4_HW_STATUS,
-       mmDC_I2C_DDC5_HW_STATUS,
-       mmDC_I2C_DDC6_HW_STATUS,
-       mmDC_I2C_DDCVGA_HW_STATUS
-};
-
 /*
  * @brief
  * Cast 'struct i2c_sw_engine *'