Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2017 15:35:33 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        "Landon J. Fuller" <landonf@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r310295 - in head/sys: conf dev/bhnd/nvram modules/bhnd
Message-ID:  <CAPyFy2CXoep1MX3Xk=AggAxAm4HmeRZ0y4tuCvxKoKmDjDBHqw@mail.gmail.com>
In-Reply-To: <201612192028.uBJKSRs4056590@repo.freebsd.org>
References:  <201612192028.uBJKSRs4056590@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 December 2016 at 15:28, Landon J. Fuller <landonf@freebsd.org> wrote:
> Author: landonf
> Date: Mon Dec 19 20:28:27 2016
> New Revision: 310295
> URL: https://svnweb.freebsd.org/changeset/base/310295
>
> Log:
>   bhnd(4): NVRAM device path support.
>
>   Implements bhnd_nvram_store support for parsing and operating over NVRAM
>   device paths, and device path aliases, as well as tracking per-path NVRAM
>   variable writes.

> @@ -871,13 +881,45 @@ bhnd_nvram_sprom_getvar(struct bhnd_nvra
>        if ((var->flags & BHND_NVRAM_VF_IGNALL1) && all_bits_set)
>                return (ENOENT);
>
> +       /* Provide value wrapper */
> +       return (bhnd_nvram_val_init(val, var->fmt, inp, ilen, var->type,
> +           BHND_NVRAM_VAL_BORROW_DATA));
> +               return (error);
> +}

The extra return here seems odd; Coverity picked it up as CID 1373118.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2CXoep1MX3Xk=AggAxAm4HmeRZ0y4tuCvxKoKmDjDBHqw>