Mailbox: Fix return value check in pcc_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 14 Jan 2015 01:10:56 +0000 (09:10 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 6 Feb 2015 05:27:56 +0000 (10:57 +0530)
commit356d5d28f2cd45ee1956ee868de6f5d37bb9f7dd
tree8dd6fce04de27006759c61428701c3f1fc392043
parente36f014edff70fc02b3d3d79cead1d58f289332e
Mailbox: Fix return value check in pcc_init()

In case of error, the function platform_create_bundle() returns
ERR_PTR() and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
drivers/mailbox/pcc.c