memory: atmel-ebi: use PTR_ERR_OR_ZERO() to simplify the code
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 7 Jul 2016 02:08:38 +0000 (02:08 +0000)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 8 Aug 2016 10:12:29 +0000 (12:12 +0200)
commitee4fec5f44a2c0f59327748217319f78e49b90a7
tree1e982eebf2e6412c1cc45af92e5e6a56f22be1f4
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
memory: atmel-ebi: use PTR_ERR_OR_ZERO() to simplify the code

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR.

Generated by coccinelle.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/memory/atmel-ebi.c