diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2026-04-26 23:03:02 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2026-04-26 23:03:02 +0000 |
| commit | 92e5f6e1995acb10628ab210cc9f19dbf74f2948 (patch) | |
| tree | fbe5960e77b5d0b8aaa2baf1aa91aa9bd0d11c34 /sys/modules/sound/driver/spicds/ssh:/anongit@git.FreeBSD.org | |
| parent | 4feeca3193c316c18472cd40f215446fda3bd739 (diff) | |
This fixes the case where selected_size is never set to anything
in the loop. Whilst here, also set selected_fw to NULL so the case
of "no firmware" correctly sets everything to NULL/0.
```
--- ucode_subr.o ---
/workspace/src/sys/x86/x86/ucode_subr.c: In function 'ucode_amd_find':
/workspace/src/sys/x86/x86/ucode_subr.c:237:25: warning: 'selected_size' may be used uninitialized [-Wmaybe-uninitialized]
237 | *selected_sizep = selected_size;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/ workspace/src/sys/x86/x86/ucode_subr.c:105:16: note: 'selected_size' was declared here
105 | size_t selected_size;
| ^~~~~~~~~~~~~
```
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D55439
Diffstat (limited to 'sys/modules/sound/driver/spicds/ssh:/anongit@git.FreeBSD.org')
0 files changed, 0 insertions, 0 deletions
