From: Matthias Beyer Date: Sun, 20 Jul 2014 13:14:11 +0000 (+0200) Subject: Staging: bcm: nvm.c: Removed indentation level by using continue statement X-Git-Tag: firefly_0821_release~176^2~3491^2~391 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3ebe23705515c6a032bb8386de19b4ee7863a50;p=firefly-linux-kernel-4.4.55.git Staging: bcm: nvm.c: Removed indentation level by using continue statement Signed-off-by: Matthias Beyer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/bcm/nvm.c b/drivers/staging/bcm/nvm.c index 4aa195c791e9..edbd0f9b6f97 100644 --- a/drivers/staging/bcm/nvm.c +++ b/drivers/staging/bcm/nvm.c @@ -1049,22 +1049,23 @@ static int bulk_read_complete_sector(struct bcm_mini_adapter *ad, offset + i, MAX_RW_SIZE); - if (bulk_read_stat == STATUS_SUCCESS) { - if (ad->ulFlashWriteSize == 1) { - for (j = 0; j < 16; j++) { - if (read_bk[j] != tmpbuff[i+j]) { - if (STATUS_SUCCESS != (*ad->fpFlashWriteWithStatusCheck)(ad, partoff + i + j, &tmpbuff[i+j])) { - return STATUS_FAILURE; - } - } - } - } else { - if (memcmp(read_bk, &tmpbuff[i], MAX_RW_SIZE)) { - if (STATUS_SUCCESS != (*ad->fpFlashWriteWithStatusCheck)(ad, partoff + i, &tmpbuff[i])) { + if (bulk_read_stat != STATUS_SUCCESS) + continue; + + if (ad->ulFlashWriteSize == 1) { + for (j = 0; j < 16; j++) { + if (read_bk[j] != tmpbuff[i+j]) { + if (STATUS_SUCCESS != (*ad->fpFlashWriteWithStatusCheck)(ad, partoff + i + j, &tmpbuff[i+j])) { return STATUS_FAILURE; } } } + } else { + if (memcmp(read_bk, &tmpbuff[i], MAX_RW_SIZE)) { + if (STATUS_SUCCESS != (*ad->fpFlashWriteWithStatusCheck)(ad, partoff + i, &tmpbuff[i])) { + return STATUS_FAILURE; + } + } } }