diff options
Diffstat (limited to 'mec1308.c')
-rw-r--r-- | mec1308.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |