[PATCH v6 3/3] i2c: add param sanity check to i2c_transfer()

Wolfram Sang wsa at the-dreams.de
Tue Apr 3 08:03:11 PDT 2018


> +	if (!msgs || num < 1)
> +		return -EINVAL;

I think this case justifies WARN (or WARN_ON, I always mix them up).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180403/10dd1b75/attachment.sig>


More information about the linux-arm-kernel mailing list