提交 aabaf67f 编写于 作者: M Matthias Beyer 提交者: Greg Kroah-Hartman

Staging: bcm: nvm.c: Removed indentation level by concatenating nested if statements

Signed-off-by: NMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f3ebe237
......@@ -1054,17 +1054,15 @@ static int bulk_read_complete_sector(struct bcm_mini_adapter *ad,
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;
}
if ((read_bk[j] != tmpbuff[i+j]) &&
(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;
}
if ((memcmp(read_bk, &tmpbuff[i], MAX_RW_SIZE)) &&
((STATUS_SUCCESS != (*ad->fpFlashWriteWithStatusCheck)(ad, partoff + i, &tmpbuff[i])))) {
return STATUS_FAILURE;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册