diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-04-10 06:17:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-14 14:45:58 -0400 |
commit | 65fccab560922d8a1a1e7d3c9711c309126d636f (patch) | |
tree | 81eb463d2ca926a7097da7abfeba99ab9b3e93d3 | |
parent | abd50853d9fff98e4277b0bc23e5cee23b058b9f (diff) |
[media] s5p-mfc: Remove potential uninitialized variable usage
Make sure mem_info[] array is not used uninitialized. This prevents
following compiler warning:
drivers/media/platform/s5p-mfc/s5p_mfc.c: In function s5p_mfc_probe:
drivers/media/platform/s5p-mfc/s5p_mfc.c:1032:33: warning: mem_info[0] may be used uninitialized in this function [-Wuninitialized]
drivers/media/platform/s5p-mfc/s5p_mfc.c:1021:15: note: mem_info[0] was declared here
drivers/media/platform/s5p-mfc/s5p_mfc.c:1032:33: warning: mem_info[1] may be used uninitialized in this function [-Wuninitialized]
drivers/media/platform/s5p-mfc/s5p_mfc.c:1021:15: note: mem_info[1] was declared here
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index f608b7761be7..e810b1abf40e 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c | |||
@@ -1020,7 +1020,7 @@ static void *mfc_get_drv_data(struct platform_device *pdev); | |||
1020 | 1020 | ||
1021 | static int s5p_mfc_alloc_memdevs(struct s5p_mfc_dev *dev) | 1021 | static int s5p_mfc_alloc_memdevs(struct s5p_mfc_dev *dev) |
1022 | { | 1022 | { |
1023 | unsigned int mem_info[2]; | 1023 | unsigned int mem_info[2] = { }; |
1024 | 1024 | ||
1025 | dev->mem_dev_l = devm_kzalloc(&dev->plat_dev->dev, | 1025 | dev->mem_dev_l = devm_kzalloc(&dev->plat_dev->dev, |
1026 | sizeof(struct device), GFP_KERNEL); | 1026 | sizeof(struct device), GFP_KERNEL); |