diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-08-23 14:44:55 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-08-23 14:44:55 +0000 |
commit | 2bd7da65d639b22e87ae5dc8778b10bff537ac80 (patch) | |
tree | 705a78c1cb0d414b6057d6a33df1df3d387c0d53 | |
parent | d3b86d8ba3d6ca8704c4395c3072fe34fe9cf002 (diff) |
fix unused variable warning gcc4 complains about
found the hard way by deraadt@
-rw-r--r-- | sys/dev/pci/drm/drm_dp_mst_topology.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_dp_mst_topology.c b/sys/dev/pci/drm/drm_dp_mst_topology.c index 309dc08caae..7171b3a9416 100644 --- a/sys/dev/pci/drm/drm_dp_mst_topology.c +++ b/sys/dev/pci/drm/drm_dp_mst_topology.c @@ -5424,7 +5424,9 @@ static const struct i2c_algorithm drm_dp_mst_i2c_algo = { static int drm_dp_mst_register_i2c_bus(struct drm_dp_mst_port *port) { struct drm_dp_aux *aux = &port->aux; +#ifdef __linux__ struct device *parent_dev = port->mgr->dev->dev; +#endif aux->ddc.algo = &drm_dp_mst_i2c_algo; aux->ddc.algo_data = aux; |