From 9c1aab478d9f17b1b6c20b2170ba9bfd16280511 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 5 Oct 2015 13:43:21 +0100 Subject: [PATCH] trs80: trivial tidy up --- Kernel/platform-trs80/devgfx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Kernel/platform-trs80/devgfx.c b/Kernel/platform-trs80/devgfx.c index 5e1dfc41..2d635836 100644 --- 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; } -- 2.34.1