summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-06-11 19:41:30 +0300
committerToomas Soome <tsoome@me.com>2021-09-08 23:20:45 +0300
commit522f3fed58557c04826e5f63025c9186ebf52cb0 (patch)
tree74264390c0dba4e6fd529b5a891905554a9b0a4a
parent77161fd3d75972404d1d4d53237251b3a475f430 (diff)
downloadillumos-joyent-522f3fed58557c04826e5f63025c9186ebf52cb0.tar.gz
14054 libfruutils: smatch errors
Reviewed by: Patrick Mooney <pmooney@pfmooney.com> Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/lib/libfruutils/fru_tag.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/lib/libfruutils/fru_tag.c b/usr/src/lib/libfruutils/fru_tag.c
index b14646dd45..5df08f270f 100644
--- a/usr/src/lib/libfruutils/fru_tag.c
+++ b/usr/src/lib/libfruutils/fru_tag.c
@@ -74,8 +74,7 @@ get_tag_size(fru_tagtype_t tag)
}
int
-mk_tag(fru_tagtype_t type, uint32_t dense, size_t pl_len,
- fru_tag_t *tag)
+mk_tag(fru_tagtype_t type, uint32_t dense, size_t pl_len, fru_tag_t *tag)
{
static fru_tag_t max = { 0xFFFFFFFFFFFFFFFFULL };
/* make sure the tag is clear. */
@@ -215,9 +214,9 @@ get_tag_type(fru_tag_t *tag)
return (FRU_F);
else if (tag->g.type == FRU_G_ID)
return (FRU_G);
- else
- errno = EINVAL;
- return (-1);
+
+ errno = EINVAL;
+ return (-1);
}
#endif /* _LITTLE_ENDIAN */