misc: tegra_cpc: use NULL instead of integer 0
Amit Sharma (SW-TEGRA) [Sun, 16 Aug 2015 04:35:59 +0000 (09:35 +0530)]
Fixed the following sparse warning by using 'NULL' instead of integer '0':
- tegra_cpc.c:517:42: warning: Using plain integer as NULL pointer

Bug 200067946

Change-Id: I7caf2f551c4495c3ccb09d2ec63f6c149bb1d9ba
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/784019
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

drivers/misc/tegra_cpc.c

index 87eaa74..7cef920 100644 (file)
@@ -514,7 +514,7 @@ static long cpc_ioctl(struct file *file,
                        unsigned int cmd, unsigned long arg)
 {
        struct cpc_i2c_host *cpc = file->private_data;
-       struct tegra_cpc_frame *cpc_fr = 0;
+       struct tegra_cpc_frame *cpc_fr = NULL;
        long err = 0;
 
        if (_IOC_TYPE(cmd) != NVCPC_IOC_MAGIC) {