OSDN Git Service

modetest: unify {,atomic_}set_mode()
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 13 Apr 2020 15:05:52 +0000 (16:05 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 May 2020 20:09:35 +0000 (21:09 +0100)
commitbdb9b82cf7ba557aa296f6ed2fbe04ea8a0c3ea1
treeb01a209c0278ed0eec725dee5362a291895ad55d
parent544fab624d3322a37de907b06fc4fb60f906a094
modetest: unify {,atomic_}set_mode()

Instead of duplicating the exact same code across the two functions,
fold them into one.

For some strange reason git diff may show atomic_clear_mode() as changed
The function in untouched, despite the misleading output.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
tests/modetest/modetest.c