mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 04:41:21 -04:00
Staging: bcm: nvm.c: Removed indentation level by using continue statement
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
093300f444
commit
f3ebe23705
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user