diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-06 07:29:29 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-06 07:49:57 +0800 |
commit | e2170a9f0398c738749e78e1c4cd66684a0dccbd (patch) | |
tree | 629c2f2b9cad84ca64a9b3d05d7696d8da99463b /openbsc/src | |
parent | 7fe2a3d2930bc1fde01fb11ac2b645a5b8586b02 (diff) |
bsc_msc: Remove the except code as it is wrong...
Remove wrong code that is luckily not called. We would end up
in a reconnect and attempt to bsc_fd_register the same socket
again. I am removing this part of the code as it is not used
and it would need to know if the fd has ever been registered
or not...
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/bsc_msc.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/openbsc/src/bsc_msc.c b/openbsc/src/bsc_msc.c index a04460659..e89269b6c 100644 --- a/openbsc/src/bsc_msc.c +++ b/openbsc/src/bsc_msc.c @@ -59,20 +59,6 @@ static void msc_con_timeout(void *_con) bsc_msc_lost(con); } -static int bsc_msc_except(struct bsc_fd *bfd) -{ - struct write_queue *wrt; - struct bsc_msc_connection *con; - - LOGP(DMSC, LOGL_ERROR, "Exception on the BFD. Closing down.\n"); - - wrt = container_of(bfd, struct write_queue, bfd); - con = container_of(wrt, struct bsc_msc_connection, write_queue); - - connection_loss(con); - return 0; -} - /* called in the case of a non blocking connect */ static int msc_connection_connect(struct bsc_fd *fd, unsigned int what) { @@ -221,7 +207,6 @@ struct bsc_msc_connection *bsc_msc_create(const char *ip, int port, int prio) con->port = port; con->prio = prio; write_queue_init(&con->write_queue, 100); - con->write_queue.except_cb = bsc_msc_except; return con; } |