diff options
author | Eugeni Dodonov <[email protected]> | 2012-05-09 15:37:12 -0300 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2012-05-19 22:39:44 +0200 |
commit | 5826eca5ac58469a704984bceaebfda5bcb383db (patch) | |
tree | 01596043830eec5a913b73c818aef31ce0b5f6db /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 461bc9b587389586edf9315b337fb136f33594ad (diff) |
drm/i915: properly check for pipe count
As suggested by Chris Wilson and Daniel Vetter, this chunk of code can be
simplified with a more simple check.
Also, as noticed by Jesse Barnes, it is worth mentioning that plane is an
enum and num_pipe is an int, so we could be more paranoid here about those
validation checks eventually.
CC: Daniel Vetter <[email protected]>
CC: Chris Wilson <[email protected]>
Reviewed-by: Jesse Barnes <[email protected]>
Signed-off-by: Eugeni Dodonov <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions