drivers/nble: Take advantage of the new net_buf_pull_u8() helper

Change-Id: Ia1c90c178b385b5bdb2e60a597810aa296c4da3e
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-02-12 14:58:02 +02:00 committed by Gerrit Code Review
commit f15b3fbf6a

View file

@ -111,8 +111,7 @@ void rpc_transmit_cb(struct net_buf *buf)
hdr->src_cpu_id = 0; hdr->src_cpu_id = 0;
while (buf->len) { while (buf->len) {
uart_poll_out(nble_dev, buf->data[0]); uart_poll_out(nble_dev, net_buf_pull_u8(buf));
net_buf_pull(buf, 1);
} }
net_buf_unref(buf); net_buf_unref(buf);