Skip to content

Commit 3949636

Browse files
YueHaibingBen Skeggs
authored andcommitted
drm/nouveau/kms/nv50: remove set but not unused variable 'nv_connector'
drivers/gpu/drm/nouveau/dispnv50/disp.c: In function nv50_pior_enable: drivers/gpu/drm/nouveau/dispnv50/disp.c:1672:28: warning: variable nv_connector set but not used [-Wunused-but-set-variable] commit ac2d927 ("drm/nouveau/kms/nv50-: Store the bpc we're using in nv50_head_atom") left behind this. Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
1 parent 35e4909 commit 3949636

File tree

1 file changed

+0
-2
lines changed
  • drivers/gpu/drm/nouveau/dispnv50

1 file changed

+0
-2
lines changed

drivers/gpu/drm/nouveau/dispnv50/disp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,15 +1669,13 @@ nv50_pior_enable(struct drm_encoder *encoder)
16691669
{
16701670
struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
16711671
struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc);
1672-
struct nouveau_connector *nv_connector;
16731672
struct nv50_head_atom *asyh = nv50_head_atom(nv_crtc->base.state);
16741673
struct nv50_core *core = nv50_disp(encoder->dev)->core;
16751674
u8 owner = 1 << nv_crtc->index;
16761675
u8 proto;
16771676

16781677
nv50_outp_acquire(nv_encoder);
16791678

1680-
nv_connector = nouveau_encoder_connector_get(nv_encoder);
16811679
switch (asyh->or.bpc) {
16821680
case 10: asyh->or.depth = 0x6; break;
16831681
case 8: asyh->or.depth = 0x5; break;

0 commit comments

Comments
 (0)