coresight: Use ERR_CAST instead of ERR_PTR
authorzhong jiang <zhongjiang@huawei.com>
Thu, 20 Sep 2018 19:17:44 +0000 (13:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:09:17 +0000 (20:09 +0200)
commitbbd35ba6fab5419e58e96f35f1431f13bdc14f98
tree14c6a3ab37d9bbf701eb601f0cfaa2d8b9f6c7da
parent5ecc7120194c6f10c09197e368b378c699100123
coresight: Use ERR_CAST instead of ERR_PTR

Use ERR_CAT inlined function to replace the ERR_PTR(PTR_ERR). It
make the code more concise.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-tmc-etr.c