diff mbox series

omapdrm/dss/dsi.c:modify 'u32'->'int'

Message ID 20210317094852.424-1-tangchunyou@163.com (mailing list archive)
State New, archived
Headers show
Series omapdrm/dss/dsi.c:modify 'u32'->'int' | expand

Commit Message

ChunyouTang March 17, 2021, 9:48 a.m. UTC
From: tangchunyou <tangchunyou@yulong.com>

1.the type of mipi_dsi_create_packet id int
2.u32 can not < 0

Signed-off-by: tangchunyou <tangchunyou@yulong.com>
---
 drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tomi Valkeinen March 17, 2021, 11:54 a.m. UTC | #1
Hi,

On 17/03/2021 11:48, ChunyouTang wrote:
> From: tangchunyou <tangchunyou@yulong.com>
> 
> 1.the type of mipi_dsi_create_packet id int
> 2.u32 can not < 0
> 
> Signed-off-by: tangchunyou <tangchunyou@yulong.com>
> ---
>   drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
> index 8e11612..11c502d 100644
> --- a/drivers/gpu/drm/omapdrm/dss/dsi.c
> +++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
> @@ -2149,7 +2149,7 @@ static int dsi_vc_send_short(struct dsi_data *dsi, int vc,
>   			     const struct mipi_dsi_msg *msg)
>   {
>   	struct mipi_dsi_packet pkt;
> -	u32 r;
> +	int r;
>   
>   	r = mipi_dsi_create_packet(&pkt, msg);
>   	if (r < 0)
> 

I have already applies a similar patch "drm/omap: dsi: fix unsigned 
expression compared with zero".

  Tomi
diff mbox series

Patch

diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
index 8e11612..11c502d 100644
--- a/drivers/gpu/drm/omapdrm/dss/dsi.c
+++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
@@ -2149,7 +2149,7 @@  static int dsi_vc_send_short(struct dsi_data *dsi, int vc,
 			     const struct mipi_dsi_msg *msg)
 {
 	struct mipi_dsi_packet pkt;
-	u32 r;
+	int r;
 
 	r = mipi_dsi_create_packet(&pkt, msg);
 	if (r < 0)