]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: add default branch for switch statement
authorXiaofei Tan <tanxiaofei@huawei.com>
Tue, 26 Nov 2019 13:23:06 +0000 (14:23 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 26 Nov 2019 13:23:06 +0000 (14:23 +0100)
Add default branch for the switch statements that default branch
was missed.

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com> Date: Tue, 26 Nov 2019 20:12:36 +0800
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
non-standard-hisi_hip08.c

index f8f8e1d67b2f698495d1b38b2814977ad09acbe8..4cfa1070605818bec1a63002f64a54440e98bf92 100644 (file)
@@ -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";
 }