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 <oka@qca.qualcomm.com>

Change-Id: Ibfb8d407cb902ecc2b61dd971262904aa25aa9ba
CRs-Fixed: 999422
This commit is contained in:
Manjunathappa Prakash 2016-04-21 16:19:31 -07:00 • committed by Gerrit - the friendly Code Review server
commit 34e9616ebb

View file

@ -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)