weston-log-flight-rec: Fix useless comparison when displaying the
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 7 Aug 2019 14:21:49 +0000 (17:21 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 25 Nov 2019 20:29:49 +0000 (20:29 +0000)
commitd2dbcd3d7ee87bbfc55e55dd66c226bf4be9d583
treeef99dcedd96b31e45d87a5f44e1d08b79bde1267
parent0ba0b8e86ff57bda309782482ecebc360e3d1d00
weston-log-flight-rec: Fix useless comparison when displaying the
contents of the flight recorder

The overlap variable is sufficient to determine from where to start
displaying the contents of the ring buffer. Also redundant to verify
if the position in the buffer went over the maximum size.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Reported-by: Pekka Paalanen <pekka.paalanen@collabora.com>
libweston/weston-log-flight-rec.c