mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
intel: gen decoder: don't check for size_t negative values
We should get either 0 or 1 here. CID: 1373562 (Control flow issues) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
bac80635af
commit
4201b7d1bf
1 changed files with 1 additions and 1 deletions
|
|
@ -648,7 +648,7 @@ gen_spec_load_from_path(const struct gen_device_info *devinfo,
|
|||
do {
|
||||
buf = XML_GetBuffer(ctx.parser, XML_BUFFER_SIZE);
|
||||
len = fread(buf, 1, XML_BUFFER_SIZE, input);
|
||||
if (len < 0) {
|
||||
if (len == 0) {
|
||||
fprintf(stderr, "fread: %m\n");
|
||||
fclose(input);
|
||||
free(filename);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue