aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/fd.c')
-rw-r--r--arch/um/drivers/fd.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/um/drivers/fd.c b/arch/um/drivers/fd.c
index 207b0444c9d9..0a2bb5b64b82 100644
--- a/arch/um/drivers/fd.c
+++ b/arch/um/drivers/fd.c
@@ -1,19 +1,18 @@
1/* 1/*
2 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) 2 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com)
3 * Licensed under the GPL 3 * Licensed under the GPL
4 */ 4 */
5 5
6#include <stddef.h>
7#include <stdlib.h>
8#include <stdio.h> 6#include <stdio.h>
7#include <stdlib.h>
8#include <unistd.h>
9#include <errno.h> 9#include <errno.h>
10#include <termios.h> 10#include <termios.h>
11#include <unistd.h>
12#include "chan_user.h" 11#include "chan_user.h"
12#include "kern_constants.h"
13#include "os.h"
13#include "um_malloc.h" 14#include "um_malloc.h"
14#include "user.h" 15#include "user.h"
15#include "os.h"
16#include "kern_constants.h"
17 16
18struct fd_chan { 17struct fd_chan {
19 int fd; 18 int fd;
@@ -42,7 +41,7 @@ static void *fd_init(char *str, int device, const struct chan_opts *opts)
42 } 41 }
43 42
44 data = kmalloc(sizeof(*data), UM_GFP_KERNEL); 43 data = kmalloc(sizeof(*data), UM_GFP_KERNEL);
45 if(data == NULL) 44 if (data == NULL)
46 return NULL; 45 return NULL;
47 46
48 *data = ((struct fd_chan) { .fd = n, 47 *data = ((struct fd_chan) { .fd = n,