drm/virtio: Add spaces around operators
This patch fixes the checkpatch.pl check: virtgpu_ioctl.c:535: CHECK: spaces preferred around that '|' (ctx:VxV) virtgpu_vq.c:277: CHECK: spaces preferred around that '+' (ctx:VxV) ... Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/8402b55696b44483ba2e1f6aaeb53bf709ffbfe7.1519343668.git.rodrigosiqueiramelo@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:

committed by
Gerd Hoffmann

parent
601030e262
commit
dbe37dc31c
@@ -274,7 +274,7 @@ static int virtio_gpu_queue_ctrl_buffer_locked(struct virtio_gpu_device *vgdev,
|
||||
return -ENODEV;
|
||||
|
||||
sg_init_one(&vcmd, vbuf->buf, vbuf->size);
|
||||
sgs[outcnt+incnt] = &vcmd;
|
||||
sgs[outcnt + incnt] = &vcmd;
|
||||
outcnt++;
|
||||
|
||||
if (vbuf->data_size) {
|
||||
@@ -709,8 +709,8 @@ void virtio_gpu_cmd_context_create(struct virtio_gpu_device *vgdev, uint32_t id,
|
||||
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_CREATE);
|
||||
cmd_p->hdr.ctx_id = cpu_to_le32(id);
|
||||
cmd_p->nlen = cpu_to_le32(nlen);
|
||||
strncpy(cmd_p->debug_name, name, sizeof(cmd_p->debug_name)-1);
|
||||
cmd_p->debug_name[sizeof(cmd_p->debug_name)-1] = 0;
|
||||
strncpy(cmd_p->debug_name, name, sizeof(cmd_p->debug_name) - 1);
|
||||
cmd_p->debug_name[sizeof(cmd_p->debug_name) - 1] = 0;
|
||||
virtio_gpu_queue_ctrl_buffer(vgdev, vbuf);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user