aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTuomas Tynkkynen <[email protected]>2018-07-13 00:54:16 +0300
committerGreg Kroah-Hartman <[email protected]>2018-07-13 11:37:34 +0200
commit4feb0f375f030050906c834fde8bf80ac4a4571b (patch)
tree040b1984d7b5dee4729e7e3508f6864338be8bb0 /tools/perf/scripts/python
parent81f34e96dc9f965e80497ffbc764bf931b91ac5f (diff)
staging: bcm2835-audio: Check if workqueue allocation failed
Currently, if allocating a workqueue fails, the driver will probe successfully but it will silently do nothing, which is rather silly. So instead bail out with -ENOMEM in bcm2835_audio_open() if alloc_workqueue() fails, and remove the now pointless checks for a NULL workqueue. While at it, get rid of the rather pointless one-line function my_workqueue_init(). Signed-off-by: Tuomas Tynkkynen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions