char: Simplify chardev_name_foreach()
commitf3b70e0779c84a5c220ca67610b27cbe672d986a
authorKevin Wolf <kwolf@redhat.com>
Thu, 11 Mar 2021 16:42:53 +0000 (11 17:42 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 Mar 2021 09:18:17 +0000 (19 10:18 +0100)
treea10f6efa94044965d1c1139d2506b49c56a3f0c5
parent5965243641d797b2270082c5a4eab49cb81fc8f0
char: Simplify chardev_name_foreach()

Both callers use callbacks that don't do anything when they are called
for CLI aliases. Instead of passing the cli_alias parameter, just don't
call the callbacks for aliases in the first place.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210311164253.338723-4-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
chardev/char.c