diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-05-09 12:45:07 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-05-09 12:48:54 +0200 |
commit | d20a10c58ba448e98ad5d89e4c61d67ce810fb2e (patch) | |
tree | b3ed6aa0844a64556bd0e28219f4cd7ef187c7f3 | |
parent | 28fea7746bbc2fb8ca0f677a93559c0c9f4cff09 (diff) |
input/ipaccess: Remove unneeded osmo_fd_write_enable()
Recent commit optimize the same function by avoiding an extra poll loop
when e1i_ts->sign.delay was zero. Upon doing so, the
osmo_fd_write_disable() was moved to some conditional paths. Hence, the
WRITE flag is left set and we don't need to set it again in the code
path modified in this commit.
Fixes: 28fea7746bbc2fb8ca0f677a93559c0c9f4cff09
Change-Id: I84787b6de2a5ccc82bd8f19ce874e73708bc287f
-rw-r--r-- | src/input/ipaccess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index b995fde..ca48d21 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -509,7 +509,7 @@ static int __handle_ts1_write(struct osmo_fd *bfd, struct e1inp_line *line) case E1INP_SIGN_OSMO: break; default: - osmo_fd_write_enable(bfd); /* come back for more msg */ + /* leave WRITE flag enabled, come back for more msg */ ret = -EINVAL; goto out; } |