projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fb2749
)
lima: Print usage if --help is any of the arguments.
author
Vinson Lee
<vlee@freedesktop.org>
Tue, 29 Sep 2020 01:35:04 +0000
(18:35 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Sat, 3 Oct 2020 00:45:42 +0000
(17:45 -0700)
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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/lima/standalone/lima_disasm.c
b/src/gallium/drivers/lima/standalone/lima_disasm.c
index
334d13e
..
ee4460d
100644
(file)
--- a/
src/gallium/drivers/lima/standalone/lima_disasm.c
+++ b/
src/gallium/drivers/lima/standalone/lima_disasm.c
@@
-163,8
+163,6
@@
main(int argc, char **argv)
print_usage();
return 1;
}
-
- break;
}
char *filename = NULL;