summaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2016-05-03 11:33:46 -0600
committerMathieu Poirier <mathieu.poirier@linaro.org>2016-06-01 15:46:31 -0600
commit8356894677ad1f9900a037346514866c35cc4bd3 (patch)
tree1e8a94013db9f53f03010cca7971e2c8f8bd10e1 /lib/test-string_helpers.c
parent66c6e1177cfae0532c63b465bea65afaef289531 (diff)
coresight: tmc: re-implementing tmc_read_prepare/unprepare() functions
In their current implementation the tmc_read_prepare/unprepare() are a lump of if/else that is difficult to read. This patch is alleviating that by using a switch statement. The latter also allows for a better control on the error path. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit b1789b793eb4627928f55a6acea8da7c25e5c6b4)
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions