gpio: langwell: fix possible null pointer dereference.
authorAxel Haslam <axelx.haslam@intel.com>
Tue, 7 Feb 2012 11:18:59 +0000 (12:18 +0100)
committerbuildbot <buildbot@intel.com>
Fri, 10 Feb 2012 06:42:28 +0000 (22:42 -0800)
commitb18b7e09e250f0663a501a0bb1463a3eb2d3c84b
tree5ab348d1c5cea493d39d7faed8742c044a6d09ef
parentd3b9f0262bcc0782ea471eb155fe92a0b660a128
gpio: langwell: fix possible null pointer dereference.

BZ: 22932

The function checks for null and then makes a dereference
of the same pointer. This is a no-no.

Change-Id: I30e10396e13f5f69cfe5a01d30526c840286da08
Signed-off-by: Axel Haslam <axelx.haslam@intel.com>
Reviewed-on: http://android.intel.com:8080/34277
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Li, Ning <ning.li@intel.com>
Reviewed-by: Fiat, Christophe <christophe.fiat@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/gpio/langwell_gpio.c