Skip to content

Commit 68231e4

Browse files
committed
EXODUS: Clean up static analysis issue
1 parent 7db697b commit 68231e4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/seacas/libraries/exodus/src/ex_put_name.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ int ex__put_assembly_name(int exoid, ex_entity_type obj_type, ex_entity_id entit
5252
if ((status = ex__leavedef(exoid, __func__)) != NC_NOERR) {
5353
snprintf(errmsg, MAX_ERR_LENGTH, "ERROR: failed to exit define mode in file id %d", exoid);
5454
ex_err_fn(exoid, __func__, errmsg, status);
55-
EX_FUNC_LEAVE(EX_FATAL);
5655
}
5756
EX_FUNC_LEAVE(EX_FATAL);
5857
}
@@ -96,7 +95,7 @@ int ex_put_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id, cons
9695
}
9796

9897
switch (obj_type) {
99-
case EX_ASSEMBLY: return ex__put_assembly_name(exoid, obj_type, entity_id, name); break;
98+
case EX_ASSEMBLY: return ex__put_assembly_name(exoid, obj_type, entity_id, name);
10099
case EX_EDGE_BLOCK: vobj = VAR_NAME_ED_BLK; break;
101100
case EX_FACE_BLOCK: vobj = VAR_NAME_FA_BLK; break;
102101
case EX_ELEM_BLOCK: vobj = VAR_NAME_EL_BLK; break;
@@ -137,7 +136,7 @@ int ex_put_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id, cons
137136
}
138137

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

0 commit comments

Comments
 (0)