Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1196bcf9 authored by Thierry Reding's avatar Thierry Reding Committed by Ben Skeggs
Browse files

drm/nouveau/disp: Use NULL for pointers



The return type of exec_lookup() is struct nvkm_output *, so it should
return NULL rather than 0.

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 305c1959
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -809,7 +809,7 @@ exec_lookup(struct nv50_disp_priv *priv, int head, int or, u32 ctrl,
		case 0x00000900: type = DCB_OUTPUT_DP; mask = 2; break;
		default:
			nv_error(priv, "unknown SOR mc 0x%08x\n", ctrl);
			return 0x0000;
			return NULL;
		}
	}