diff options
author | Tomi Valkeinen <[email protected]> | 2023-11-03 15:14:03 +0200 |
---|---|---|
committer | Tomi Valkeinen <[email protected]> | 2023-12-07 09:21:43 +0200 |
commit | 1d3062fad9c7313fff9970a88e0538a24480ffb8 (patch) | |
tree | 3b0bf58d8ecd8e4bea3c6221acecc135ca8cc9c8 /scripts/rustdoc_test_builder.rs | |
parent | 28d3d0696688154cc04983f343011d07bf0508e4 (diff) |
drm/drm_file: fix use of uninitialized variable
smatch reports:
drivers/gpu/drm/drm_file.c:967 drm_show_memory_stats() error: uninitialized symbol 'supported_status'.
'supported_status' is only set in one code path. I'm not familiar with
the code to say if that path will always be ran in real life, but
whether that is the case or not, I think it is good to initialize
'supported_status' to 0 to silence the warning (and possibly fix a bug).
Reviewed-by: Laurent Pinchart <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions