Tag: a6d24143fca421c836f78538705c8e5b3ef04e3d

qlogicpti: Return correct error code

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> 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) { … return – -1 + -ENODEV ; } // The single call …

Continue reading