Thread (1 message) 1 message, 1 author, 2014-09-14

[PATCH] ahci_xgene: Fix the error print invalid resource for APM X-Gene SoC AHCI SATA Host Controller driver.

From: tj@kernel.org (Tejun Heo)
Date: 2014-09-14 09:39:11
Also in: linux-devicetree, linux-ide, linux-scsi

Possibly related (same subject, not in this thread)

Hello,

On Sun, Sep 14, 2014 at 11:36:51AM +0530, Suman Tripathi wrote:
We can  maintain same piece (IS_ERR(ctx->csr_mux)), then we can do the
below instead of NULL ??

ctx->csr_mux = res ? devm_ioremap_resource(dev, res) : ERR_PTR(-EINVAL);
Setting it to NULL on failure would probably make more sense.  No need
to carry around ERR_PTR() value around.

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help