qcacmn: Remove range validation check for Boolean type
BOOLEAN is native c type so external range validation is not needed. Change-Id: I38f72938ffb282a42ea175a11435c629ea3d9194 CRs-Fixed: 2410988
This commit is contained in:

کامیت شده توسط
nshrivas

والد
02d3f5423e
کامیت
67817953c1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -240,8 +240,6 @@ cfg_string_in_range(const char *value, qdf_size_t min_len, qdf_size_t max_len)
|
||||
#define __cfg_UINT_in_range(value, min, max) (value >= min && value <= max)
|
||||
#define __cfg_STRING_in_range(value, min_len, max_len) \
|
||||
cfg_string_in_range(value, min_len, max_len)
|
||||
#define __cfg_BOOL_in_range(value, min, max) \
|
||||
((value == min) || (value == max))
|
||||
|
||||
#define __cfg_in_range(id, value, mtype) \
|
||||
__cfg_ ## mtype ## _in_range(value, cfg_min(id), cfg_max(id))
|
||||
|
مرجع در شماره جدید
Block a user