]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: nvmap: fix uninitialized variable
authorSri Krishna chowdary <schowdary@nvidia.com>
Wed, 13 Aug 2014 05:29:00 +0000 (10:59 +0530)
committerHiroshi Doyu <hdoyu@nvidia.com>
Wed, 13 Aug 2014 05:55:43 +0000 (22:55 -0700)
commit7bb85a8429f43976a0feadc3ccd4152b857bfc87
treed4ce1aaeae610d8a3602f230620a46cf31f791ba
parentfc41641faa088451fbc100d4f49046c24c88df62
video: tegra: nvmap: fix uninitialized variable

Fix compile time issue of uninitialized variable 'err'
in nvmap_init.

This compile time issue is seen when CONFIG_DEBUG_SECTION_MISMATCH
is enabled.

This would be happen only incase there is neither platform_data
nor device_node for nvmap. But, nvmap_probe would not proceed
further without a valid platform_data and hence leaving it
uninitialized would not be harmful.

Bug 200027499

Change-Id: Ice955e2d1584c21d0adbf07a49ea35563e1615f8
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/455953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
drivers/video/tegra/nvmap/nvmap_init.c