Heiko Schocher cdc67e2750 led: fix coverity scan error
The following was reported by Covervity scan:

*** CID 541279:    (TAINTED_SCALAR)
/drivers/led/led-uclass.c: 284 in led_get_function_name()
278                     if (!ret) {
279                             snprintf(uc_plat->name, LED_MAX_NAME_SIZE,
280                                      "%s:%s-%d",
281                                      cp ? "" : led_colors[color],
282                                      func ? func : "", enumerator);
283                     } else {
>>>     CID 541279:    (TAINTED_SCALAR)
>>>     Using tainted variable "color" as an index into an array "led_colors".

Fix it.
Addresses-Coverity-ID: 541279 (TAINTED_SCALAR)
Link: https://lists.denx.de/pipermail/u-boot/2025-February/580250.html
Signed-off-by: Heiko Schocher <hs@denx.de>
2025-02-18 12:30:53 -06:00
..
2025-01-20 19:26:54 -06:00
2024-10-11 11:44:48 -06:00
2025-01-31 08:32:11 -06:00
2024-12-07 09:07:04 -03:00
2024-12-24 18:07:53 +01:00
2024-12-23 08:10:15 -03:00
2024-11-20 17:57:58 +01:00
2024-12-11 08:36:24 +01:00
2024-10-11 11:44:48 -06:00
2025-02-18 12:30:53 -06:00
2025-01-22 16:43:54 +01:00
2024-10-11 11:44:48 -06:00
2025-02-18 08:26:43 -06:00