Re: [PATCH] fpga: machxo2-spi: return an error on failure

From: Moritz Fischer
Date: Wed Aug 11 2021 - 07:29:25 EST


On Tue, Aug 10, 2021 at 09:51:16PM +0300, Dan Carpenter wrote:
> On Tue, Aug 10, 2021 at 07:06:09PM +0200, Greg KH wrote:
> > On Tue, Aug 10, 2021 at 09:40:36AM -0700, trix@xxxxxxxxxx wrote:
> > > From: Tom Rix <trix@xxxxxxxxxx>
> > >
> > > Reported problem
> > >
> > > drivers/fpga/machxo2-spi.c:229 machxo2_write_init()
> > > warn: missing error code 'ret'
> > >
> > > drivers/fpga/machxo2-spi.c:316 machxo2_write_complete()
> > > warn: missing error code 'ret'
> >
> > What reported this? What does it mean? Where was it reported?
>
> These are Smatch errors, but my bug reports don't mention Smatch so
> that's on me. I've fixed my report templated to mention Smatch now.
>
> regards,
> dan carepenter
>
>
Applied with slightly reworded commit-message to 'fixes' branch.

Thanks,
Moritz