Skip to content

Commit 2a07204

Browse files
committed
clang-format
1 parent 968d8cd commit 2a07204

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/wh_lock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ int wh_Lock_Init(whLock* lock, const whLockConfig* config)
4444

4545
/* Allow NULL config for single-threaded mode (no-op locking) */
4646
if ((config == NULL) || (config->cb == NULL)) {
47-
lock->cb = NULL;
48-
lock->context = NULL;
47+
lock->cb = NULL;
48+
lock->context = NULL;
4949
lock->initialized = 1; /* Mark as initialized even in no-op mode */
5050
return WH_ERROR_OK;
5151
}

src/wh_server_counter.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ int wh_Server_HandleCounter(whServerContext* server, uint16_t magic,
172172
server->nvm,
173173
WH_MAKE_KEYID(WH_KEYTYPE_COUNTER,
174174
(uint16_t)server->comm->client_id,
175-
(uint16_t)req.counterId),
176-
meta);
175+
(uint16_t)req.counterId), meta);
177176

178177
/* return counter to the caller */
179178
if (ret == WH_ERROR_OK) {

src/wh_server_keystore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ int wh_Server_HandleKeyRequest(whServerContext* server, uint16_t magic,
18271827
keySz = WOLFHSM_CFG_COMM_DATA_LEN - sizeof(resp);
18281828

18291829
resp.len = 0;
1830-
ret = WH_SERVER_NVM_LOCK(server);
1830+
ret = WH_SERVER_NVM_LOCK(server);
18311831
if (ret == WH_ERROR_OK) {
18321832
/* read the key */
18331833
ret = wh_Server_KeystoreReadKeyChecked(
@@ -1911,7 +1911,7 @@ int wh_Server_HandleKeyRequest(whServerContext* server, uint16_t magic,
19111911
(void)wh_MessageKeystore_TranslateRevokeRequest(
19121912
magic, (whMessageKeystore_RevokeRequest*)req_packet, &req);
19131913

1914-
ret = WH_SERVER_NVM_LOCK(server);
1914+
ret = WH_SERVER_NVM_LOCK(server);
19151915
resp.rc = ret;
19161916
if (ret == WH_ERROR_OK) {
19171917
resp.rc = wh_Server_KeystoreRevokeKey(

0 commit comments

Comments
 (0)