mach-tegra: fix uninitialized variable
Colin Patrick McCabe [Wed, 18 Jan 2012 20:08:27 +0000 (12:08 -0800)]
Reviewed-on: http://git-master/r/77400

Change-Id: Idbc213bb17d0e006c9a4cdaf500a94dbae1007d0
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78011
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Rd21a422ddc197ac5e778124077ec490f49419af6

arch/arm/mach-tegra/board-cardhu-sensors.c

index 9aae357..6c7b476 100644 (file)
@@ -655,7 +655,7 @@ static struct i2c_board_info cardhu_i2c4_nct1008_board_info[] = {
 static int cardhu_nct1008_init(void)
 {
        int nct1008_port = -1;
-       int ret;
+       int ret = 0;
 
        if ((board_info.board_id == BOARD_E1198) ||
                (board_info.board_id == BOARD_E1291) ||