OSDN Git Service

Staging: bcm: nvm.c: Removed indentation level by using continue statement
authorMatthias Beyer <mail@beyermatthias.de>
Sun, 20 Jul 2014 13:14:11 +0000 (15:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2014 19:30:42 +0000 (12:30 -0700)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/nvm.c

index 4aa195c..edbd0f9 100644 (file)
@@ -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;
+                               }
+                       }
                }
        }