Skip to contentSkip to conversation

video: ipu_disp: Return a negative value on error

PATCH New Fabio Estevam 2 participants 2 messages Dec 4, 2013 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: ipu_disp: Return a negative value on error

From: Fabio Estevam <[email protected]>

We should return a negative error number (-EINVAL) on error.

---
 drivers/video/ipu_disp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/ipu_disp.c +1 -1
index 22ac142..cefd2dc 100644
@@ -889,7 +889,7 @@ int32_t ipu_init_sync_panel(int disp, uint32_t pixel_clk,
 	debug("panel size = %d x %d\n", width, height);
 
 	if ((v_sync_width == 0) || (h_sync_width == 0))
-		return EINVAL;
+		return -EINVAL;
 
 	adapt_panel_to_ipu_restricitions(&pixel_clk, width, height,
 					 h_start_width, h_end_width,
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 video: ipu_disp: Return a negative value on error

Hi Fabio,

Quoted 8 lines · On Wed, 4 Dec 2013 10:01:54 -0200 Fabio Estevam <[email protected]> wrote:

From: Fabio Estevam <[email protected]>

We should return a negative error number (-EINVAL) on error.

---
 drivers/video/ipu_disp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-video/master. Thanks!

Anatolij