Coverity fixes
memsetting 'nor_cs_info' to avoid uninitialzied usage of
the fields in code.
Coverity ID 18089
Bug
200083369
Change-Id: I08f1b308feb08a8953a51ec868fb493c00f29790
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/767141
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
/*
- * Copyright (C) 2014, NVIDIA Corporation. All rights reserved.
+ * Copyright (C) 2014-2015, NVIDIA Corporation. All rights reserved.
*
* Author:
* Bharath H S <bhs@nvidia.com>
enum of_gpio_flags gpio_flags;
u64 phy_addr;
+ memset(nor_cs_info, 0, sizeof(nor_cs_info));
pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
if (!pdata) {
dev_err(&pdev->dev, "Memory alloc for pdata failed");