[PATCH 14/14] [media] fix warning on v4l2_subdev_call() result interpreted as bool

Dan Carpenter dan.carpenter at oracle.com
Fri Jul 14 06:09:55 PDT 2017


On Fri, Jul 14, 2017 at 03:55:26PM +0300, Dan Carpenter wrote:
> I don't agree with it as a static analysis dev...

What I mean is if it's a macro that returns -ENODEV or a function that
returns -ENODEV, they should both be treated the same.  The other
warnings this check prints are quite clever.

regards,
dan carpenter



More information about the linux-arm-kernel mailing list