]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: Fix devm_ioremap_resource error detection code
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 5 May 2016 12:20:49 +0000 (17:50 +0530)
committerJassi Brar <jaswinder.singh@linaro.org>
Sun, 8 May 2016 17:14:46 +0000 (22:44 +0530)
commit62affa1265354e935b1c935db500bd20c09f109f
tree17f244075d59c9dbc9fd59d84df2a41abd5d1f8f
parent81d8e32a8e44a2b715cb87c86024fa1f27c8b0db
mailbox: Fix devm_ioremap_resource error detection code

devm_ioremap_resource returns an ERR_PTR value, not NULL,
on failure.

The Coccinelle semantic patch used to make this change is
as follows:
@@
expression e,e1;
statement S;
@@

*e = devm_ioremap_resource(...);
if (!e1) S

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox-sti.c