diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2014-12-09 21:53:53 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2014-12-09 21:53:58 +0900 |
commit | 720ded2101cd62848dbf9da608fa06dab191c9a4 (patch) | |
tree | c5b47e6a880a7304236d15832d8e40e2e7ead5c0 | |
parent | 7f38183e71bbd43c9f2c23144bf8cc517886ca34 (diff) | |
download | linux-3.10-accepted/tizen/mobile/20141216.083708.tar.gz linux-3.10-accepted/tizen/mobile/20141216.083708.tar.bz2 linux-3.10-accepted/tizen/mobile/20141216.083708.zip |
sensorhub: remove unnecessary kfree during driver shutdownsubmit/tizen/20141215.004633accepted/tizen/wearable/20141217.085804accepted/tizen/tv/20141217.085627accepted/tizen/mobile/20141216.083708accepted/tizen/common/20141215.134117
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.c | 4 |
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 |