summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-10-07 12:50:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-10-12 12:17:34 +0100
commit84088ebd14aebf1b8499409a037094b9b88e2796 (patch)
treea239085ff20650319449d811f5e55207ea890df3 /ipc
parenta95194569f697a6cc10d00f9b9b3d21b0b820520 (diff)
downloadlinux-stable-84088ebd14aebf1b8499409a037094b9b88e2796.tar.gz
linux-stable-84088ebd14aebf1b8499409a037094b9b88e2796.tar.bz2
linux-stable-84088ebd14aebf1b8499409a037094b9b88e2796.zip
iio: Add a helper to free a list of IIO device attributes
We have the same code to free a IIO device attribute list in multiple place. This patch adds a new helper function to take care of this and replaces the custom instances with a call to the helper function. Note that we do not need to call list_del() for each of the list items since we will never look at any of the list items nor the list itself again. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions