fet: fix unused variable warning.

This commit is contained in:
Daniel Beer 2012-10-04 14:24:44 +12:00
parent bec49846fb
commit 3da52fe100
1 changed files with 1 additions and 3 deletions

View File

@ -81,14 +81,12 @@ static device_t fet_open_olimex_iso_mk2(const struct device_args *args)
return NULL;
if (args->require_fwupdate) {
int r;
if (obl_update(trans, args->require_fwupdate) < 0) {
trans->ops->destroy(trans);
return NULL;
}
r = obl_reset(trans);
obl_reset(trans);
trans->ops->destroy(trans);
printc("Resetting, please wait...\n");