> "Amitoj" == Amitoj Kaur Chawla writes:
Amitoj> The return value of of_ioremap on failure should be -ENODEV and
Amitoj> not -1.
Applied to 4.6/scsi-queue.
--
Martin K. Petersen Oracle Linux Engineering
--
To unsubscribe from this list: send the line
On 02/17/2016 09:32 PM, Amitoj Kaur Chawla wrote:
> The return value of of_ioremap on failure should be -ENODEV and not
> -1.
>
> Found using Coccinelle. A simplified version of the semantic patch
> used is:
>
> //
> @@
> expression *e;
> @@
>
> e = of_ioremap(...);
> if (e == NULL) {
> ...
>
Reviewed-by: Shane Seymour
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
3 matches
Mail list logo