Re: [PATCH RESEND] drm/mediatek: dsi: fix error codes in mtk_dsi_host_transfer()

2025-03-03 Thread Chun-Kuang Hu
Hi, Dan: Dan Carpenter 於 2025年1月8日 週三 下午5:36寫道: > > There is a type bug because the return statement: > > return ret < 0 ? ret : recv_cnt; > > The issue is that ret is an int, recv_cnt is a u32 and the function > returns ssize_t, which is a signed long. The way that the type promotion >

Re: [PATCH RESEND] drm/mediatek: dsi: fix error codes in mtk_dsi_host_transfer()

2025-02-17 Thread 胡俊光

[PATCH RESEND] drm/mediatek: dsi: fix error codes in mtk_dsi_host_transfer()

2025-01-08 Thread Dan Carpenter
There is a type bug because the return statement: return ret < 0 ? ret : recv_cnt; The issue is that ret is an int, recv_cnt is a u32 and the function returns ssize_t, which is a signed long. The way that the type promotion works is that the negative error codes are first cast to u32 and