mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
iris: remove NULL check for already dereferenced pointer earlier
Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Signed-off-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com> Found by Coverity. CID: 1528158 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20893>
This commit is contained in:
parent
33546705b5
commit
1cbf10ca88
1 changed files with 1 additions and 1 deletions
|
|
@ -7772,7 +7772,7 @@ iris_upload_render_state(struct iris_context *ice,
|
|||
iris_batch_sync_region_end(batch);
|
||||
|
||||
uint32_t count = (sc) ? sc->count : 0;
|
||||
count *= (draw && draw->instance_count) ? draw->instance_count : 1;
|
||||
count *= draw->instance_count ? draw->instance_count : 1;
|
||||
trace_intel_end_draw(&batch->trace, count);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue