aboutsummaryrefslogtreecommitdiffstats
path: root/exynos
diff options
context:
space:
mode:
authorTobias Jakobi2015-02-24 08:20:50 -0600
committerEmil Velikov2015-03-10 14:23:45 -0500
commitba858e06d8e73180643f40afa9f4de562dc40252 (patch)
treeee4994d422739c1601bc0dd45aa02204534b36c9 /exynos
parent734d13b13b2f6f02465bf51412e0c2be255eb8b5 (diff)
downloadexternal-libdrm-ba858e06d8e73180643f40afa9f4de562dc40252.tar.gz
external-libdrm-ba858e06d8e73180643f40afa9f4de562dc40252.tar.xz
external-libdrm-ba858e06d8e73180643f40afa9f4de562dc40252.zip
exynos: fimg2d: remove TRUE/FALSE from header
The fimg2d header was defining TRUE and FALSE, but actually these defines are just used once. Remove them, since they don't make the code better readable/understandable. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'exynos')
-rw-r--r--exynos/exynos_fimg2d.c4
-rw-r--r--exynos/fimg2d.h7
2 files changed, 2 insertions, 9 deletions
diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c
index 03cf182f..398a8442 100644
--- a/exynos/exynos_fimg2d.c
+++ b/exynos/exynos_fimg2d.c
@@ -135,7 +135,7 @@ static int g2d_add_cmd(struct g2d_context *ctx, unsigned long cmd,
135 break; 135 break;
136 } 136 }
137 137
138 return TRUE; 138 return 0;
139} 139}
140 140
141/* 141/*
@@ -187,7 +187,7 @@ static int g2d_flush(struct g2d_context *ctx)
187 struct drm_exynos_g2d_set_cmdlist cmdlist; 187 struct drm_exynos_g2d_set_cmdlist cmdlist;
188 188
189 if (ctx->cmd_nr == 0 && ctx->cmd_buf_nr == 0) 189 if (ctx->cmd_nr == 0 && ctx->cmd_buf_nr == 0)
190 return FALSE; 190 return -1;
191 191
192 if (ctx->cmdlist_nr >= G2D_MAX_CMD_LIST_NR) { 192 if (ctx->cmdlist_nr >= G2D_MAX_CMD_LIST_NR) {
193 fprintf(stderr, "Overflow cmdlist.\n"); 193 fprintf(stderr, "Overflow cmdlist.\n");
diff --git a/exynos/fimg2d.h b/exynos/fimg2d.h
index 8e0321cf..56a0b96e 100644
--- a/exynos/fimg2d.h
+++ b/exynos/fimg2d.h
@@ -13,13 +13,6 @@
13#ifndef _FIMG2D_H_ 13#ifndef _FIMG2D_H_
14#define _FIMG2D_H_ 14#define _FIMG2D_H_
15 15
16#ifndef TRUE
17#define TRUE 0
18#endif
19#ifndef FALSE
20#define FALSE -1
21#endif
22
23#define G2D_MAX_CMD_NR 64 16#define G2D_MAX_CMD_NR 64
24#define G2D_MAX_GEM_CMD_NR 64 17#define G2D_MAX_GEM_CMD_NR 64
25#define G2D_MAX_CMD_LIST_NR 64 18#define G2D_MAX_CMD_LIST_NR 64