coresight: Remove redundant null pointer check before of_node_put and put_device
authorzhong jiang <zhongjiang@huawei.com>
Thu, 20 Sep 2018 19:18:19 +0000 (13:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:09:19 +0000 (20:09 +0200)
commitbbbecc644a4fff76e8c89b9859701bdcde198d9c
tree40d7714288f4a5a1efa04547d489e6b6e4e14565
parent1cf11385f354acbadd20f55e41be9bb1db8b1b2c
coresight: Remove redundant null pointer check before of_node_put and put_device

of_node_put and put_device has taken the null pointer check into account.
So it is safe to remove the duplicated check.

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/of_coresight.c