diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-02-11 21:21:43 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-14 01:28:39 +0300 |
commit | 35c8ce6ac5c2efedf76912c86b2021a6e4ec1655 (patch) | |
tree | 9168066e963cf7ad669a2fb29e073721cd138293 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 77719d28aeed5cad45b61d66b198b2575a5bf4cc (diff) | |
download | linux-35c8ce6ac5c2efedf76912c86b2021a6e4ec1655.tar.xz |
drm/i915/skl: Fix always true comparison in a revision id check
It's always a good idea to keep static analysis happy (also because it
prompts doing the check like I proposed :), this time smatch complains:
drivers/gpu/drm/i915/intel_ringbuffer.c:891 gen9_init_workarounds() warn:
always true condition '((->dev->pdev->revision) >= (0)) => (0-255 >= 0)'
That's because revision is a u8. Tweak a bit the condition then.
Cc: Nick Hoath <nicholas.hoath@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Nick Hoath <nicholas.hoath@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions