Skip to content

Commit 3504fc4

Browse files
committed
Removed 572980 fix, added clang-formatting
1 parent 0716db2 commit 3504fc4

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/wh_client_nvm.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,8 @@ int wh_Client_NvmReadResponse(whClientContext* c, int32_t *out_rc,
651651
(resp_size - hdr_len > WH_MESSAGE_NVM_MAX_READ_LEN)) {
652652
/* Invalid message */
653653
rc = WH_ERROR_ABORTED;
654-
} else {
654+
}
655+
else {
655656
/* Valid message */
656657
if (out_rc != NULL) {
657658
*out_rc = msg->rc;
@@ -729,7 +730,8 @@ int wh_Client_NvmAddObjectDmaResponse(whClientContext* c, int32_t* out_rc)
729730
(resp_size != sizeof(msg))) {
730731
/* Invalid message */
731732
rc = WH_ERROR_ABORTED;
732-
} else {
733+
}
734+
else {
733735
/* Valid message */
734736
if (out_rc != NULL) {
735737
*out_rc = msg.rc;
@@ -799,7 +801,8 @@ int wh_Client_NvmReadDmaResponse(whClientContext* c, int32_t* out_rc)
799801
(resp_size != sizeof(msg))) {
800802
/* Invalid message */
801803
rc = WH_ERROR_ABORTED;
802-
} else {
804+
}
805+
else {
803806
/* Valid message */
804807
if (out_rc != NULL) {
805808
*out_rc = msg.rc;

src/wh_nvm_flash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,8 @@ int wh_NvmFlash_DestroyObjects(void* c, whNvmId list_count,
11931193
ret = nfObject_Copy(context, entry,
11941194
dest_part, &dest_object, &dest_data);
11951195
if (ret != WH_ERROR_OK) {
1196-
/* Abort reclaim to avoid activating a partially copied partition */
1196+
/* Abort reclaim to avoid activating a partially copied
1197+
* partition */
11971198
return ret;
11981199
}
11991200
}

src/wh_server_keystore.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ int wh_Server_HandleKeyRequest(whServerContext* server, uint16_t magic,
706706
resp.ok = 0;
707707

708708
(void)wh_MessageKeystore_TranslateEvictResponse(
709-
magic, &resp, (whMessageKeystore_EvictResponse*)resp_packet);
709+
magic, &resp,
710+
(whMessageKeystore_EvictResponse*)resp_packet);
710711
*out_resp_size = sizeof(resp);
711712
}
712713
} break;

0 commit comments

Comments
 (0)