[PATCH] cros_ec: Fix an error code is cros_ec_get_sku_id()

Simon Glass sjg at chromium.org
Thu Jul 27 02:49:40 CEST 2023


On Wed, 26 Jul 2023 at 00:58, Dan Carpenter <dan.carpenter at linaro.org> wrote:
>
> The ec_command_inptr() function returns negative error codes or
> the number of bytes that it was able to read.  The cros_ec_get_sku_id()
> function should return negative error codes.  Right now it returns
> positive error codes or negative byte counts.
>
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
> ---
>  drivers/misc/cros_ec.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list