From f172706351e32ab2ae18d398d3342d98d91f159d Mon Sep 17 00:00:00 2001 From: Lingutla Chandrasekhar Date: Mon, 12 Jun 2017 14:36:03 +0530 Subject: soc: qcom: update return value for minidump add region If minidump is not enabled, minidump add region api returns error number, clients can log the error to log buffer, which flood the log buffer unnecessarily. So return quietly if minidump support is not enabled. Change-Id: I9c6428015ca40c5233f80471896bacecd0872bf7 Signed-off-by: Lingutla Chandrasekhar --- include/soc/qcom/minidump.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/soc/qcom/minidump.h b/include/soc/qcom/minidump.h index 2db61a40e2cc..5eb18cb1a365 100644 --- a/include/soc/qcom/minidump.h +++ b/include/soc/qcom/minidump.h @@ -37,12 +37,13 @@ struct md_region { */ #ifdef CONFIG_QCOM_MINIDUMP extern int msm_minidump_add_region(const struct md_region *entry); +/* Sets to true, if minidump table is initialized */ extern bool minidump_enabled; #else static inline int msm_minidump_add_region(const struct md_region *entry) { - return -ENODEV; + /* Return quietly, if minidump is not supported */ + return 0; } -static inline bool msm_minidump_enabled(void) { return false; } #endif #endif -- cgit v1.2.3