commit | 2c99f1a09da3dcc1fbbed4b85c274d045f352b43 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Jan 21 07:55:58 2017 +0300 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Jan 22 13:37:34 2017 +0000 |
tree | b35a42ecaa73498838c4c2e01ceec3aab0170c4b | |
parent | 99a22f062b1c279a5d332946de655ef0a244e583 [diff] |
iio: trigger: clean up viio_trigger_alloc() 1) Reverse the test for kmalloc() failure so we can pull everything back one tab. 2) Use gotos for unwinding. 3) Some of the extra line breaks for the 80 character limit are no longer needed so we can remove them. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>