drivers: nct: Fixed uninitialized variable
Joshua Primero [Mon, 10 Sep 2012 23:15:12 +0000 (16:15 -0700)]
Initialized variable to 0

Change-Id: Ib05d83b5a06bf8e3ece4c4b1856f4e702f7f9494
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/139081
(cherry picked from commit 1df057920f583fe2c8f10fb37411420c52a91b5a)
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/146672
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/misc/nct1008.c

index 9f79a41..9c4a01f 100644 (file)
@@ -970,7 +970,7 @@ static int __devinit nct1008_probe(struct i2c_client *client,
        struct nct1008_data *data;
        int err;
        int i;
-       int num_trips;
+       int num_trips = 0;
 
        data = kzalloc(sizeof(struct nct1008_data), GFP_KERNEL);
        if (!data)