diff --git a/mec1308.c b/mec1308.c index 0ec9be9de..1530d9b50 100644 --- a/mec1308.c +++ b/mec1308.c @@ -409,9 +409,7 @@ static struct spi_master spi_master_mec1308 = { static int check_params(void) { int ret = 0; - char *p = NULL; - - p = extract_programmer_param("type"); + char *const p = extract_programmer_param("type"); if (p && strcmp(p, "ec")) { msg_pdbg("mec1308 only supports \"ec\" type devices\n"); ret = 1;