Android tegra 2.6.32

fix missing return values and initialization, and incorrect function argument type