Commit d1486e3352c8e6b91da8e610993ea591466cb223
Committed by
Anatolij Gustschin
1 parent
f44483b57c
Exists in
master
and in
50 other branches
video: ipu_disp: Return a negative value on error
We should return a negative error number (-EINVAL) on error. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/video/ipu_disp.c
... | ... | @@ -889,7 +889,7 @@ |
889 | 889 | debug("panel size = %d x %d\n", width, height); |
890 | 890 | |
891 | 891 | if ((v_sync_width == 0) || (h_sync_width == 0)) |
892 | - return EINVAL; | |
892 | + return -EINVAL; | |
893 | 893 | |
894 | 894 | adapt_panel_to_ipu_restricitions(&pixel_clk, width, height, |
895 | 895 | h_start_width, h_end_width, |