diff options
| author | Jie Gan <jie.gan@oss.qualcomm.com> | 2025-11-07 14:16:39 +0800 |
|---|---|---|
| committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2025-11-07 13:31:17 +0000 |
| commit | aa5edd1b5ece68aa806b2af6508b4b8006026da0 (patch) | |
| tree | d8efd4bfded442adad8d19bfd018c2f0986395e3 /drivers/hwtracing | |
| parent | 14ae052f794715c1d78113d87f3d42adf2ae24d0 (diff) | |
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
Diffstat (limited to 'drivers/hwtracing')
| -rw-r--r-- | drivers/hwtracing/coresight/coresight-tpdm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtracing/coresight/coresight-tpdm.c index 0e3896c12f07..06e0a905a67d 100644 --- a/drivers/hwtracing/coresight/coresight-tpdm.c +++ b/drivers/hwtracing/coresight/coresight-tpdm.c @@ -1402,11 +1402,11 @@ static int tpdm_probe(struct device *dev, struct resource *res) if (ret) return ret; - if (drvdata && tpdm_has_dsb_dataset(drvdata)) + if (tpdm_has_dsb_dataset(drvdata)) of_property_read_u32(drvdata->dev->of_node, "qcom,dsb-msrs-num", &drvdata->dsb_msr_num); - if (drvdata && tpdm_has_cmb_dataset(drvdata)) + if (tpdm_has_cmb_dataset(drvdata)) of_property_read_u32(drvdata->dev->of_node, "qcom,cmb-msrs-num", &drvdata->cmb_msr_num); } else { |
