mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
drm/kms: silencing a false positive warning.
warning: 'width' may be used uninitialized in this function drivers/gpu/drm/drm_edid.c Signed-off-by: Marin Mitov <mitov@issp.bas.bg> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
e2108eb1f6
commit
29ebdf925c
1 changed files with 1 additions and 1 deletions
|
@ -913,7 +913,7 @@ static int drm_cvt_modes(struct drm_connector *connector,
|
||||||
const int rates[] = { 60, 85, 75, 60, 50 };
|
const int rates[] = { 60, 85, 75, 60, 50 };
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
int width, height;
|
int uninitialized_var(width), height;
|
||||||
cvt = &(timing->data.other_data.data.cvt[i]);
|
cvt = &(timing->data.other_data.data.cvt[i]);
|
||||||
|
|
||||||
height = (cvt->code[0] + ((cvt->code[1] & 0xf0) << 8) + 1) * 2;
|
height = (cvt->code[0] + ((cvt->code[1] & 0xf0) << 8) + 1) * 2;
|
||||||
|
|
Loading…
Reference in a new issue