Skip to contentSkip to conversation

Staging: media: davinci_vpfe: fix indentation issue in vpfe_video.c

PATCH In review Leo Sperling 2 participants 2 messages Oct 23, 2016 – Nov 22, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: media: davinci_vpfe: fix indentation issue in vpfe_video.c

This is a patch to the vpfe_video.c file that fixes an indentation warning reported by checkpatch.pl

---
 drivers/staging/media/davinci_vpfe/vpfe_video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/media/davinci_vpfe/vpfe_video.c +2 -2
index 8be9f85..c34bf46 100644
@@ -1143,8 +1143,8 @@ static int vpfe_buffer_prepare(struct vb2_buffer *vb)
 	/* Initialize buffer */
 	vb2_set_plane_payload(vb, 0, video->fmt.fmt.pix.sizeimage);
 	if (vb2_plane_vaddr(vb, 0) &&
-		vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0))
-			return -EINVAL;
+	    vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0))
+		return -EINVAL;
 
 	addr = vb2_dma_contig_plane_dma_addr(vb, 0);
 	/* Make sure user addresses are aligned to 32 bytes */
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw

Hi Leo,

Thank you for the patch, and sorry for the late reply.

Quoted 4 lines · On Sunday 23 Oct 2016 14:02:23 Leo Sperling wrote:

This is a patch to the vpfe_video.c file that fixes an indentation warning reported by checkpatch.pl

and applied to my tree. I will send a pull request for v4.11.

Quoted 20 lines
---
 drivers/staging/media/davinci_vpfe/vpfe_video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/media/davinci_vpfe/vpfe_video.c index 8be9f85..c34bf46 100644

drivers/staging/media/davinci_vpfe/vpfe_video.c +2 -2
@@ -1143,8 +1143,8 @@ static int vpfe_buffer_prepare(struct vb2_buffer *vb)
 	/* Initialize buffer */
 	vb2_set_plane_payload(vb, 0, video->fmt.fmt.pix.sizeimage);
 	if (vb2_plane_vaddr(vb, 0) &&
-		vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0))
-			return -EINVAL;
+	    vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0))
+		return -EINVAL;
 
 	addr = vb2_dma_contig_plane_dma_addr(vb, 0);
 	/* Make sure user addresses are aligned to 32 bytes */
Signature · 3 lines
Regards,

Laurent Pinchart