From: Suzuki K Poulose Date: Tue, 21 Jun 2016 16:10:53 +0000 (+0100) Subject: coresight: Cleanup TMC status check X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7ff7e0fbbb3f1ed01e6e8af10cb17ccf2fd4e4cc;p=deliverable%2Flinux.git coresight: Cleanup TMC status check Use the defined symbol rather than hardcoding the value to check whether the TMC buffer is full. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c index 03f36cb8b0c8..6d7de0309e94 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c @@ -68,7 +68,7 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) * Adjust the buffer to point to the beginning of the trace data * and update the available trace data. */ - if (val & BIT(0)) { + if (val & TMC_STS_FULL) { drvdata->buf = drvdata->vaddr + rwp - drvdata->paddr; drvdata->len = drvdata->size; } else {