summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2014-12-09 21:53:53 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2014-12-09 21:53:58 +0900
commit720ded2101cd62848dbf9da608fa06dab191c9a4 (patch)
treec5b47e6a880a7304236d15832d8e40e2e7ead5c0
parent7f38183e71bbd43c9f2c23144bf8cc517886ca34 (diff)
downloadlinux-3.10-accepted/tizen/wearable/20141217.085804.tar.gz
linux-3.10-accepted/tizen/wearable/20141217.085804.tar.bz2
linux-3.10-accepted/tizen/wearable/20141217.085804.zip
The ssp_data pointer is allocated with devm_kzalloc, so freeing it is not necessary. Change-Id: Idd26ba71e9c343d61e7b5aa01b21a2f2c3ae9b00 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--drivers/sensorhub/stm/ssp_dev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/sensorhub/stm/ssp_dev.c b/drivers/sensorhub/stm/ssp_dev.c
index b488219c722..42df17bfcdf 100644
--- a/drivers/sensorhub/stm/ssp_dev.c
+++ b/drivers/sensorhub/stm/ssp_dev.c
@@ -543,7 +543,7 @@ static void ssp_shutdown(struct spi_device *spi)
func_dbg();
if (data->bProbeIsDone == false)
- goto exit;
+ return;
if (data->fw_dl_state >= FW_DL_STATE_SCHEDULED &&
data->fw_dl_state < FW_DL_STATE_DONE) {
@@ -586,8 +586,6 @@ static void ssp_shutdown(struct spi_device *spi)
#endif
toggle_mcu_reset(data);
ssp_info(" done\n");
-exit:
- kfree(data);
}
#ifdef CONFIG_HAS_EARLYSUSPEND