led: replace conditional by ternary operator
led: replace conditional by ternary operator

Signed-off-by: Francois Berder <0eabc3e9da54407da074ac08d4217d54f5b94915@imgtec.com>

CreatorDev/ci40-provision-daemon,CreatorDev/ci40-provision-daemon