Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

coresight: tpdm: remove redundant check for drvdata

Remove the redundant check for drvdata data because the drvdata here
already has been guarranted to be non-NULL.

Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20251107-fix_tpdm_redundant_check-v1-1-b63468a2dd73@oss.qualcomm.com

authored by

Jie Gan and committed by
Suzuki K Poulose
aa5edd1b 14ae052f

+2 -2
+2 -2
drivers/hwtracing/coresight/coresight-tpdm.c
··· 1402 1402 if (ret) 1403 1403 return ret; 1404 1404 1405 - if (drvdata && tpdm_has_dsb_dataset(drvdata)) 1405 + if (tpdm_has_dsb_dataset(drvdata)) 1406 1406 of_property_read_u32(drvdata->dev->of_node, 1407 1407 "qcom,dsb-msrs-num", &drvdata->dsb_msr_num); 1408 1408 1409 - if (drvdata && tpdm_has_cmb_dataset(drvdata)) 1409 + if (tpdm_has_cmb_dataset(drvdata)) 1410 1410 of_property_read_u32(drvdata->dev->of_node, 1411 1411 "qcom,cmb-msrs-num", &drvdata->cmb_msr_num); 1412 1412 } else {