coresight: ultrasoc-smb: fix return value check in smb_init_data_buffer()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 18 Jan 2023 07:49:20 +0000 (15:49 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 19 Jan 2023 10:04:44 +0000 (10:04 +0000)
commit075c7c04a81a326a5a28cc0ef8411ba1c5c34e90
treeaee90ffc73a949dda52e73cf0cccc08043f8fa61
parent2d4103ae31aa6d5570fd1178ddc68867ab4ab5bd
coresight: ultrasoc-smb: fix return value check in smb_init_data_buffer()

platform_get_resource() returns NULL pointer not PTR_ERR(), replace
the IS_ERR() check with NULL pointer check.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230118074920.1772141-1-yangyingliang@huawei.com
drivers/hwtracing/coresight/ultrasoc-smb.c