Skip to content

Commit

Permalink
EXODUS: Clean up static analysis issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed May 26, 2023
1 parent 7db697b commit 68231e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/seacas/libraries/exodus/src/ex_put_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ int ex__put_assembly_name(int exoid, ex_entity_type obj_type, ex_entity_id entit
if ((status = ex__leavedef(exoid, __func__)) != NC_NOERR) {
snprintf(errmsg, MAX_ERR_LENGTH, "ERROR: failed to exit define mode in file id %d", exoid);
ex_err_fn(exoid, __func__, errmsg, status);
EX_FUNC_LEAVE(EX_FATAL);
}
EX_FUNC_LEAVE(EX_FATAL);
}
Expand Down Expand Up @@ -96,7 +95,7 @@ int ex_put_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id, cons
}

switch (obj_type) {
case EX_ASSEMBLY: return ex__put_assembly_name(exoid, obj_type, entity_id, name); break;
case EX_ASSEMBLY: return ex__put_assembly_name(exoid, obj_type, entity_id, name);
case EX_EDGE_BLOCK: vobj = VAR_NAME_ED_BLK; break;
case EX_FACE_BLOCK: vobj = VAR_NAME_FA_BLK; break;
case EX_ELEM_BLOCK: vobj = VAR_NAME_EL_BLK; break;
Expand Down Expand Up @@ -137,7 +136,7 @@ int ex_put_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id, cons
}

/* If this is a null entity, then 'ent_ndx' will be negative.
* We don't care in this __func__, so make it positive and continue...
* We don't care in this function, so make it positive and continue...
*/
if (ent_ndx < 0) {
ent_ndx = -ent_ndx;
Expand Down

0 comments on commit 68231e4

Please sign in to comment.