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>
*/
int nvmap_init(struct platform_device *pdev)
{
- int err;
+ int err = 0;
#ifdef CONFIG_NVMAP_USE_CMA_FOR_CARVEOUT
struct dma_declare_info vpr_dma_info;
struct dma_declare_info generic_dma_info;