[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/9] Remove misleading comments from tcp device
From: |
Ladislav Michl |
Subject: |
[PATCH 5/9] Remove misleading comments from tcp device |
Date: |
Sat, 25 Jan 2020 10:46:16 +0100 |
---
common/devices/tcp.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/common/devices/tcp.c b/common/devices/tcp.c
index af9ed7ee..e2bcde46 100644
--- a/common/devices/tcp.c
+++ b/common/devices/tcp.c
@@ -40,8 +40,6 @@
# define O_NONBLOCK 0
#endif
-/* Open the serial port and store the settings. */
-
static int tcp_open(const char *file)
{
int fd;
@@ -138,9 +136,6 @@ int tcp_close(int fd, struct gn_statemachine *state)
return close(fd);
}
-/* Open a device with standard options.
- * Use value (-1) for "with_hw_handshake" if its specification is required
from the user
- */
int tcp_opendevice(const char *file, int with_async, struct gn_statemachine
*state)
{
int fd;
@@ -193,16 +188,11 @@ int tcp_select(int fd, struct timeval *timeout, struct
gn_statemachine *state)
return serial_select(fd, timeout, state);
}
-
-/* Read from serial device. */
-
size_t tcp_read(int fd, __ptr_t buf, size_t nbytes, struct gn_statemachine
*state)
{
return read(fd, buf, nbytes);
}
-/* Write to serial device. */
-
size_t tcp_write(int fd, const __ptr_t buf, size_t n, struct gn_statemachine
*state)
{
return write(fd, buf, n);
--
2.25.0
- [PATCH 0/9] Refactor devices build, Ladislav Michl, 2020/01/25
- [PATCH 1/9] Move device_script into separate file, Ladislav Michl, 2020/01/25
- [PATCH 2/9] Cleanup device includes, Ladislav Michl, 2020/01/25
- [PATCH 3/9] configure.ac: do not mix library and device support checks, Ladislav Michl, 2020/01/25
- [PATCH 4/9] Remove nowhere used device_reset(), Ladislav Michl, 2020/01/25
- [PATCH 5/9] Remove misleading comments from tcp device,
Ladislav Michl <=
- [PATCH 6/9] dku2libusb: move definitions into C file, Ladislav Michl, 2020/01/25
- [PATCH 7/9] dku2libusb: whitespace cleanup, Ladislav Michl, 2020/01/25
- [PATCH 8/9] libfunctions: reimplement gn_lib_is_connectiontype_supported, Ladislav Michl, 2020/01/25
- [PATCH 9/9] Refactor devices build, Ladislav Michl, 2020/01/25
- Re: [PATCH 0/9] Refactor devices build, Pawel Kot, 2020/01/26