From 2f7843b295d3bcf50e30f234c6963b7a02e9ce2c Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 15 Dec 2014 14:15:46 -0800 Subject: [PATCH] monitor-manager-kms: Fix some minor style issues Spotted by Dave Airlie --- src/backends/native/meta-monitor-manager-kms.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c index c5285167c..aa949ab1c 100644 --- a/src/backends/native/meta-monitor-manager-kms.c +++ b/src/backends/native/meta-monitor-manager-kms.c @@ -207,7 +207,7 @@ find_properties (MetaMonitorManagerKms *manager_kms, strcmp (prop->name, "EDID") == 0) output_kms->edid_blob_id = output_kms->connector->prop_values[i]; - drmModeFreeProperty(prop); + drmModeFreeProperty (prop); } } @@ -229,8 +229,10 @@ read_output_edid (MetaMonitorManagerKms *manager_kms, } if (edid_blob->length > 0) - return g_bytes_new_with_free_func (edid_blob->data, edid_blob->length, - (GDestroyNotify)drmModeFreePropertyBlob, edid_blob); + { + return g_bytes_new_with_free_func (edid_blob->data, edid_blob->length, + (GDestroyNotify)drmModeFreePropertyBlob, edid_blob); + } else { drmModeFreePropertyBlob (edid_blob);