lima: Print usage if --help is any of the arguments.
authorVinson Lee <vlee@freedesktop.org>
Tue, 29 Sep 2020 01:35:04 +0000 (18:35 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 3 Oct 2020 00:45:42 +0000 (17:45 -0700)
commit9660427ab7b3fd18a250189667b826086529160e
treec668ee401e21dbd0029cab0abfb3e592ae0a7464
parent2fb2749937839c1edd399bcdd94e6be337e1fb56
lima: Print usage if --help is any of the arguments.

Fix defect reported by Coverity Scan.

Structurally dead code (UNREACHABLE)
unreachable: Since the loop increment n++; is unreachable, the loop body
will never execute more than once.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6906>
src/gallium/drivers/lima/standalone/lima_disasm.c