diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-01-30 17:26:04 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-02-24 15:44:22 -0500 |
commit | ea5f2786a0942832f32deb7c507531b766028356 (patch) | |
tree | 9c55e5c063e46a30ef43c71402487b850859e74d /drivers/gpu/drm/nouveau/nouveau_dp.c | |
parent | cb1d771aa03dd9f3980f08f1512d9434dd5bebfb (diff) |
drm/nouveau: silence some compiler warnings
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_dp.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_dp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c index 38d599554bce..7beb82a0315d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dp.c +++ b/drivers/gpu/drm/nouveau/nouveau_dp.c | |||
@@ -175,7 +175,6 @@ nouveau_dp_link_train_adjust(struct drm_encoder *encoder, uint8_t *config) | |||
175 | { | 175 | { |
176 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); | 176 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); |
177 | struct drm_device *dev = encoder->dev; | 177 | struct drm_device *dev = encoder->dev; |
178 | struct bit_displayport_encoder_table_entry *dpse; | ||
179 | struct bit_displayport_encoder_table *dpe; | 178 | struct bit_displayport_encoder_table *dpe; |
180 | int ret, i, dpe_headerlen, vs = 0, pre = 0; | 179 | int ret, i, dpe_headerlen, vs = 0, pre = 0; |
181 | uint8_t request[2]; | 180 | uint8_t request[2]; |
@@ -183,7 +182,6 @@ nouveau_dp_link_train_adjust(struct drm_encoder *encoder, uint8_t *config) | |||
183 | dpe = nouveau_bios_dp_table(dev, nv_encoder->dcb, &dpe_headerlen); | 182 | dpe = nouveau_bios_dp_table(dev, nv_encoder->dcb, &dpe_headerlen); |
184 | if (!dpe) | 183 | if (!dpe) |
185 | return false; | 184 | return false; |
186 | dpse = (void *)((char *)dpe + dpe_headerlen); | ||
187 | 185 | ||
188 | ret = auxch_rd(encoder, DP_ADJUST_REQUEST_LANE0_1, request, 2); | 186 | ret = auxch_rd(encoder, DP_ADJUST_REQUEST_LANE0_1, request, 2); |
189 | if (ret) | 187 | if (ret) |