public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7905dd2
)
trs80: trivial tidy up
author
Alan Cox
<alan@linux.intel.com>
Mon, 5 Oct 2015 12:43:21 +0000
(13:43 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 5 Oct 2015 12:43:21 +0000
(13:43 +0100)
Kernel/platform-trs80/devgfx.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-trs80/devgfx.c
b/Kernel/platform-trs80/devgfx.c
index
5e1dfc4
..
2d63583
100644
(file)
--- a/
Kernel/platform-trs80/devgfx.c
+++ b/
Kernel/platform-trs80/devgfx.c
@@
-93,7
+93,6
@@
static int gfx_draw_op(uarg_t arg, char *ptr, uint8_t *buf)
int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr)
{
- uint8_t *tmp;
uint8_t m;
int err;
@@
-125,7
+124,7
@@
int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr)
case GFXIOC_READ:
case GFXIOC_WRITE:
if (vmode == 1) {
- tmp = (uint8_t *)tmpbuf();
+
uint8_t *
tmp = (uint8_t *)tmpbuf();
err = gfx_draw_op(arg, ptr, tmp);
brelse((bufptr) tmp);
if (err) {
@@
-136,6
+135,5
@@
int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr)
}
/* Fall through */
}
- udata.u_error = EINVAL;
return -1;
}