From 0ba3d356b7b05ccc25e26a6b8536fa6ef7abb3c9 Mon Sep 17 00:00:00 2001 From: Xiaofei Tan Date: Tue, 26 Nov 2019 14:23:06 +0100 Subject: [PATCH] rasdaemon: add default branch for switch statement Add default branch for the switch statements that default branch was missed. CC: Xiaofei Tan , , , Date: Tue, 26 Nov 2019 20:12:36 +0800 Signed-off-by: Xiaofei Tan Signed-off-by: Mauro Carvalho Chehab --- non-standard-hisi_hip08.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/non-standard-hisi_hip08.c b/non-standard-hisi_hip08.c index f8f8e1d..4cfa107 100644 --- a/non-standard-hisi_hip08.c +++ b/non-standard-hisi_hip08.c @@ -205,6 +205,8 @@ static char *err_severity(uint8_t err_sev) case HISI_ERR_SEVERITY_FE: return "fatal"; case HISI_ERR_SEVERITY_CE: return "corrected"; case HISI_ERR_SEVERITY_NONE: return "none"; + default: + break; } return "unknown"; } @@ -451,6 +453,8 @@ static char *pcie_local_sub_module_name(uint8_t id) case HISI_PCIE_SUB_MODULE_ID_MAC: return "MAC_Layer"; case HISI_PCIE_SUB_MODULE_ID_DL: return "DL_Layer"; case HISI_PCIE_SUB_MODULE_ID_SDI: return "SDI_Layer"; + default: + break; } return "unknown"; } -- 2.50.1