summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBanajit Goswami <bgoswami@codeaurora.org>2018-07-09 20:26:19 -0700
committerBanajit Goswami <bgoswami@codeaurora.org>2018-07-09 21:37:57 -0700
commitc719e9e28e9c3fe9143da783178d28dd26af62e2 (patch)
treecb245cf54dff34fa6d3923b129c8eb1ca57ec147
parent78366da7ed3f01c3997ec5a3ee86c72a0d3a7518 (diff)
include: qdsp6v2: avoid returning error code from stubbed function
If MSM_QDSP6_NOTIFIER is not enabled for a target, audio_notifier feature will not be available for that target. Whenever a call is made to audio_notifier when its not supported, returning error from stubbed function may confuse the error with real failure (even though the feature is not enabled on the target). Avoid returning error code from stubbed function, when feature is disabled. Change-Id: I37eb2e25e45b25948aff55f2a231195a22b16f05 Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
-rw-r--r--include/linux/qdsp6v2/audio_notifier.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/qdsp6v2/audio_notifier.h b/include/linux/qdsp6v2/audio_notifier.h
index 3587b49a05c6..0d7f84613107 100644
--- a/include/linux/qdsp6v2/audio_notifier.h
+++ b/include/linux/qdsp6v2/audio_notifier.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2016, 2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -92,7 +92,7 @@ int audio_notifier_deregister(char *client_name);
static inline int audio_notifier_register(char *client_name, int domain,
struct notifier_block *nb)
{
- return -ENODEV;
+ return 0;
}
static inline int audio_notifier_deregister(char *client_name)