diff options
| author | Ville Syrjälä <[email protected]> | 2019-06-19 21:03:07 +0300 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2019-07-11 16:25:56 +0300 |
| commit | 5a5efbf4ef504a8136963a8ae10a3c0a1d59b479 (patch) | |
| tree | ce08ae9b46d97f93535a663eaac2b305f79488ab /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | aebf052bb6474f21179f2469b5c3172c4f5e4fd1 (diff) | |
drm/i915/sdvo: Fix handling if zero hbuf size
The spec says:
"A value of 0 indicates that this buffer does not exist"
So we should not convert a hbuf_size of 0 into 1.
Also pull the relevant code into a helper to avoid making the
same mistake multiple times.
And while at it fix the debug prints to not say "hbuf_len" twice.
v2: s/%i/%u/ in the debug (Imre)
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Imre Deak <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions