@@ -162,18 +162,18 @@ int virtio_gpu_init(struct virtio_device *vdev, struct drm_device *dev)
162162 if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_VIRGL ))
163163 vgdev -> has_virgl_3d = true;
164164#endif
165- if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_EDID )) {
165+ if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_EDID ))
166166 vgdev -> has_edid = true;
167- }
168- if (virtio_has_feature (vgdev -> vdev , VIRTIO_RING_F_INDIRECT_DESC )) {
167+
168+ if (virtio_has_feature (vgdev -> vdev , VIRTIO_RING_F_INDIRECT_DESC ))
169169 vgdev -> has_indirect = true;
170- }
171- if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_RESOURCE_UUID )) {
170+
171+ if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_RESOURCE_UUID ))
172172 vgdev -> has_resource_assign_uuid = true;
173- }
174- if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_RESOURCE_BLOB )) {
173+
174+ if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_RESOURCE_BLOB ))
175175 vgdev -> has_resource_blob = true;
176- }
176+
177177 if (virtio_get_shm_region (vgdev -> vdev , & vgdev -> host_visible_region ,
178178 VIRTIO_GPU_SHM_ID_HOST_VISIBLE )) {
179179 if (!devm_request_mem_region (& vgdev -> vdev -> dev ,
@@ -193,9 +193,9 @@ int virtio_gpu_init(struct virtio_device *vdev, struct drm_device *dev)
193193 (unsigned long )vgdev -> host_visible_region .addr ,
194194 (unsigned long )vgdev -> host_visible_region .len );
195195 }
196- if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_CONTEXT_INIT )) {
196+
197+ if (virtio_has_feature (vgdev -> vdev , VIRTIO_GPU_F_CONTEXT_INIT ))
197198 vgdev -> has_context_init = true;
198- }
199199
200200 DRM_INFO ("features: %cvirgl %cedid %cresource_blob %chost_visible" ,
201201 vgdev -> has_virgl_3d ? '+' : '-' ,
0 commit comments