From f6315d5e5b7b71515ef051711e5f818a42d6b3b3 Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Fri, 3 Jun 2011 22:10:03 +0200 Subject: Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes --- src/flash/nor/pic32mx.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/flash/nor/pic32mx.c') diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c index a8392eb8..69321ac3 100644 --- a/src/flash/nor/pic32mx.c +++ b/src/flash/nor/pic32mx.c @@ -313,11 +313,8 @@ static int pic32mx_erase(struct flash_bank *bank, int first, int last) static int pic32mx_protect(struct flash_bank *bank, int set, int first, int last) { - struct pic32mx_flash_bank *pic32mx_info = NULL; struct target *target = bank->target; - pic32mx_info = bank->driver_priv; - if (target->state != TARGET_HALTED) { LOG_ERROR("Target not halted"); -- cgit v1.2.3