Skip to content

Commit

Permalink
fix xdbd: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
ffashion committed Mar 15, 2024
1 parent 5e53cb2 commit 3e609e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions src/adb/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,22 +253,11 @@ int xdbd_process_write_packet(xdbd_adb_request_t *r, xdbd_adb_packet_t *p) {
return XDBD_ERR;
}

xdbd_okey_packet(r, out);
xdbd_buf_append_mem(r->out, r->pool, &out->header, sizeof(xdbd_adb_header_t));
xdbd_buf_append_buf(r->out, r->pool, out->payload);

c->send(c, r->out->pos, xdbd_buf_size(r->out));

xdbd_reset_buf(out->payload);
xdbd_reset_buf(r->out);
xdbd_write_packet(r, out, &t_data);

xdbd_buf_append_mem(r->out, r->pool, &out->header, sizeof(xdbd_adb_header_t));
xdbd_buf_append_buf(r->out, r->pool, out->payload);

c->send(c, r->out->pos, xdbd_buf_size(r->out));
xdbd_reset_buf(r->out);

return XDBD_OK;
}

Expand Down
2 changes: 1 addition & 1 deletion src/xdbd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "bfdev/log.h"
#include <bfdev/log.h>
#include <xdbd_event.h>
#include <bfdev/list.h>
#include <bfdev.h>
Expand Down

0 comments on commit 3e609e6

Please sign in to comment.