diff options
author | Jingoo Han <jg1.han@samsung.com> | 2012-11-28 23:26:05 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-29 03:20:31 -0500 |
commit | ca062415338b62a3688528d4a298db733ad27003 (patch) | |
tree | 985d9f078d2d53345dc45f8f8e67202ea53a50c9 /drivers/gpu/drm/drm_pci.c | |
parent | a8f559efb26f0d19abd819b1d59b2564f4bfa7e8 (diff) |
drm/pci: add missing variable initialization
Fixed build warning as below:
drivers/gpu/drm/drm_pci.c: In function 'drm_pcie_get_speed_cap_mask':
drivers/gpu/drm/drm_pci.c:496:9: warning: 'lnkcap' may be used uninitialized in this function [-Wuninitialized]
drivers/gpu/drm/drm_pci.c:497:10: warning: 'lnkcap2' may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
-rw-r--r-- | drivers/gpu/drm/drm_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index ba33144257e5..754bc96e10c7 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c | |||
@@ -470,7 +470,7 @@ int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *mask) | |||
470 | { | 470 | { |
471 | struct pci_dev *root; | 471 | struct pci_dev *root; |
472 | int pos; | 472 | int pos; |
473 | u32 lnkcap, lnkcap2; | 473 | u32 lnkcap = 0, lnkcap2 = 0; |
474 | 474 | ||
475 | *mask = 0; | 475 | *mask = 0; |
476 | if (!dev->pdev) | 476 | if (!dev->pdev) |