remove unused hyper_open_serial_dev()

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
Lai Jiangshan
2016-10-11 17:33:06 +08:00
parent b900783a3b
commit 2878ec5890
2 changed files with 0 additions and 11 deletions
-10
View File
@@ -565,16 +565,6 @@ int hyper_insmod(char *module)
}
#endif
int hyper_open_serial_dev(char *tty)
{
int fd = open(tty, O_RDWR | O_CLOEXEC | O_NOCTTY);
if (fd < 0)
perror("fail to open tty device");
return fd;
}
int hyper_setfd_cloexec(int fd)
{
int flags = fcntl(fd, F_GETFD);
-1
View File
@@ -30,7 +30,6 @@ void hyper_filize(char *hyper_path);
int hyper_mkdir(char *path, mode_t mode);
int hyper_write_file(const char *path, const char *value, size_t len);
int hyper_open_channel(char *channel, int mode);
int hyper_open_serial_dev(char *tty);
int hyper_setfd_cloexec(int fd);
int hyper_setfd_block(int fd);
int hyper_setfd_nonblock(int fd);