ubusd_monitor: alloc & free the buffer outside of the loop
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 5 Jul 2017 13:21:47 +0000 (16:21 +0300)
committerFelix Fietkau <nbd@nbd.name>
Mon, 13 Nov 2017 08:57:55 +0000 (09:57 +0100)
commit27d712d394a0086ff68b83de26ded70ab28d1757
tree093fcc33c8786a541b29f5090a8f2ea80eef7d7b
parentbe146ad2bce0b5377433fa2fe6602b3d4c14dead
ubusd_monitor: alloc & free the buffer outside of the loop

Should save a few cycles, since the data that's
being changed is only the seq number.
And the `ub` is always created as shared.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
ubusd_monitor.c