]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: Fix some static check warning
authorXiaofei Tan <tanxiaofei@huawei.com>
Fri, 7 Feb 2025 21:26:01 +0000 (21:26 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 Mar 2025 10:28:00 +0000 (11:28 +0100)
commit3b0f9d7e618d06652f5756d6c532ff24d0758496
treee817c321c32c559385dbff3524008fdc2c25346f
parent1d83921b5ad4dc03a411abf759c1025e548ce3e0
rasdaemon: Fix some static check warning

The decode_int_fields() and decode_text_fields() functions are used
to replace the original if judgment branch, reducing the cyclomatic
complexity.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
non-standard-hisilicon.c