I can then leave only
+ if (!dev) {
+ ret = -ENODEV;
+ goto err;
+ }
+
but make it higher
How do you like this option?
пт, 16 мая 2025 г. в 19:20, Simon Glass :
> Hi,
>
> On Fri, 16 May 2025 at 14:51, wrote:
> >
> > From: Anton Moryakov
> >
> > The stati
Hi,
On Fri, 16 May 2025 at 14:51, wrote:
>
> From: Anton Moryakov
>
> The static analyzer (Svace) reported
> After having been compared to a NULL value at spi-uclass.c:465,
> pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags'
> at spi-uclass.c:469, where it is dereferen
On Fri, May 16, 2025 at 03:50:53PM +0300, ant.v.morya...@gmail.com wrote:
> From: Anton Moryakov
>
> The static analyzer (Svace) reported
> After having been compared to a NULL value at spi-uclass.c:465,
> pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags'
> at spi-ucl
From: Anton Moryakov
The static analyzer (Svace) reported
After having been compared to a NULL value at spi-uclass.c:465,
pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags'
at spi-uclass.c:469, where it is dereferenced at device.h:240.
Correct explained:
1. Added dev
4 matches
Mail list logo