Repository navigation
Commit ea04cb3
drm/i915: drop unnecessary local variable to suppress build warning
Although I could not reproduce this (different compiler version,
perhaps), reportedly we get:
drivers/gpu/drm/i915/i915_irq.c:1943:27: warning: ‘score’ may be used
uninitialized in this function [-Wuninitialized]
Drop the 'score' variable altogether as it's not really needed.
Reported-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>1 parent f2f4d82 commit ea04cb3
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1905 | 1905 | | |
1906 | 1906 | | |
1907 | 1907 | | |
1908 | | - | |
1909 | | - | |
1910 | 1908 | | |
1911 | 1909 | | |
1912 | 1910 | | |
| |||
1927 | 1925 | | |
1928 | 1926 | | |
1929 | 1927 | | |
1930 | | - | |
1931 | 1928 | | |
1932 | 1929 | | |
1933 | | - | |
| 1930 | + | |
1934 | 1931 | | |
1935 | 1932 | | |
1936 | | - | |
| 1933 | + | |
1937 | 1934 | | |
1938 | 1935 | | |
1939 | | - | |
| 1936 | + | |
1940 | 1937 | | |
1941 | 1938 | | |
1942 | 1939 | | |
1943 | | - | |
1944 | 1940 | | |
1945 | 1941 | | |
1946 | 1942 | | |
| |||
0 commit comments