monitor-manager-kms: Fix some minor style issues

Spotted by Dave Airlie <airlied@redhat.com>
This commit is contained in:
Jasper St. Pierre 2014-12-15 14:15:46 -08:00
parent b24cd5ae08
commit 2f7843b295

View File

@ -207,7 +207,7 @@ find_properties (MetaMonitorManagerKms *manager_kms,
strcmp (prop->name, "EDID") == 0) strcmp (prop->name, "EDID") == 0)
output_kms->edid_blob_id = output_kms->connector->prop_values[i]; 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) 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 else
{ {
drmModeFreePropertyBlob (edid_blob); drmModeFreePropertyBlob (edid_blob);