summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorRohit Gupta <rohgup@codeaurora.org>2016-08-03 12:04:51 -0700
committerRohit Gupta <rohgup@codeaurora.org>2016-08-08 12:00:33 -0700
commit10824a8806f2219b9e6f34ddb54cca8c70a33824 (patch)
treee7f9289c41ccc9a8b88d91d8160c2ce6baa1f019 /include/linux/fpga/fpga-mgr.h
parent28352998dee80f33641dd7b28479350bd480b823 (diff)
PM / devfreq: memlat: Remove kfree() on probe fails
Memory allocated with devm_kzalloc() is automatically freed if the probe function fails and returns an error code. So there is no need to free cpu_grp explicitly for the failure cases that might come up after it is allocated. Additionally calls to devm_kzalloc() must be accompanied by devm_kfree() if memory deallocation is necessary. For these reasons remove the kfree(cpu_grp) from the probe function. Change-Id: Ic4838fd58d40d283ac301facc64b06813eb3bd7d Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions