PCC: fix dereference of ERR_PTR
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 16 Sep 2015 14:04:24 +0000 (19:34 +0530)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 16 Oct 2015 05:16:07 +0000 (10:46 +0530)
commitd311a28a5853857a73d54d15dc30797aa3b1802d
tree7ed80563fd1439490b1ad8138cdf28f113e3a5e8
parent049e6dde7e57f0054fdc49102e7ef4830c698b46
PCC: fix dereference of ERR_PTR

get_pcc_channel() does not return NULL on error it returns the error code
in ERR_PTR, but we have been checking it for NULL.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
drivers/mailbox/pcc.c