From 34e9616ebb858af4b93a857ed4a69e49c70cba2c Mon Sep 17 00:00:00 2001 From: Manjunathappa Prakash Date: Thu, 21 Apr 2016 16:19:31 -0700 Subject: [PATCH] qcacld-3.0: Make NAPI stubs neutral When the feature is not defined, make sure that NAPI API calls return success (0) so that the callers don't need to add any code to check return values. Acked-by: Orhan K AKYILDIZ Change-Id: Ibfb8d407cb902ecc2b61dd971262904aa25aa9ba CRs-Fixed: 999422 --- core/hdd/inc/wlan_hdd_napi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_napi.h b/core/hdd/inc/wlan_hdd_napi.h index 3c1683ded84c..f4bfa75f169a 100644 --- a/core/hdd/inc/wlan_hdd_napi.h +++ b/core/hdd/inc/wlan_hdd_napi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 The Linux Foundation. All rights reserved. + * Copyright (c) 2015-2016 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -68,7 +68,7 @@ struct qca_napi_data *hdd_napi_get_all(void); #define HDD_NAPI_ANY (-1) static inline int hdd_napi_enabled(int id) { return 0; } -static inline int hdd_napi_create(void) { return -EPERM; } +static inline int hdd_napi_create(void) { return 0; } static inline int hdd_napi_destroy(int force) { return 0; } static inline int hdd_napi_stats(char *buf, int max, char *indp, struct qca_napi_data *napid)