diff options
author | Toomas Soome <tsoome@me.com> | 2020-01-01 11:25:41 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-03-23 18:20:13 +0200 |
commit | d1d0a29b5275e074d59d170cca23b45a6e5834d8 (patch) | |
tree | f63e2ff4b562042786b0eacd60bb02475ffd0903 /usr/src | |
parent | c61137df0ddfe2318cd4b953495b4ccdb8f12b61 (diff) | |
download | illumos-joyent-d1d0a29b5275e074d59d170cca23b45a6e5834d8.tar.gz |
12420 fd: variable may be used uninitialized
Reviewed by: Yuri Pankov <ypankov@fastmail.com>
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/fd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/fd.c b/usr/src/uts/common/io/fd.c index 5ad6022610..aae0cd09c2 100644 --- a/usr/src/uts/common/io/fd.c +++ b/usr/src/uts/common/io/fd.c @@ -810,6 +810,7 @@ fdgetlabel(struct fcu_obj *fjp, int unit) nexttype = fdp->d_deffdtype; try_this = 1; /* always try the current characteristics */ + rval = ENXIO; for (tries = nfdtypes; tries; tries--) { if (try_this) { fjp->fj_flags &= ~FUNIT_CHAROK; |