diff options
author | John Levon <john.levon@joyent.com> | 2018-12-19 18:40:41 +0000 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-03-30 14:09:24 -0700 |
commit | 720c4860f9da1099f11e91ddd7f4d0edaf46c20a (patch) | |
tree | 26cd862251a769e37b43e5b6be242a8eed973f0e /usr/src/cmd/picl/plugins/common/devtree/picldevtree.c | |
parent | 7bb60aaa60bddb378dcbf2dde6bdf8a92d431c55 (diff) | |
download | illumos-joyent-720c4860f9da1099f11e91ddd7f4d0edaf46c20a.tar.gz |
10135 picl plugins need smatch fixes
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/cmd/picl/plugins/common/devtree/picldevtree.c')
-rw-r--r-- | usr/src/cmd/picl/plugins/common/devtree/picldevtree.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/src/cmd/picl/plugins/common/devtree/picldevtree.c b/usr/src/cmd/picl/plugins/common/devtree/picldevtree.c index 3a0327af3f..ab02d9091b 100644 --- a/usr/src/cmd/picl/plugins/common/devtree/picldevtree.c +++ b/usr/src/cmd/picl/plugins/common/devtree/picldevtree.c @@ -24,6 +24,10 @@ */ /* + * Copyright (c) 2018, Joyent, Inc. + */ + +/* * PICL plug-in that creates device tree nodes for all platforms */ @@ -1770,7 +1774,7 @@ static int is_snapshot_stale(di_node_t root) { snapshot_stale = 0; - di_walk_node(root, DI_WALK_CLDFIRST, NULL, check_stale_node); + (void) di_walk_node(root, DI_WALK_CLDFIRST, NULL, check_stale_node); return (snapshot_stale); } @@ -2546,8 +2550,8 @@ get_asr_export_list(char **exportlist, int *exportlistlen) return (0); } (void) memcpy(*exportlist, opp->oprom_array, opp->oprom_size); - free(opp); *exportlistlen = opp->oprom_size; + free(opp); (void) close(d); return (1); } |