summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu/hal/odm.c
diff options
context:
space:
mode:
authorPhillip Potter <phil@philpotter.co.uk>2021-05-25 01:45:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-25 19:25:52 +0300
commita75d6a3279110d8144f7209afa4e1f1680741412 (patch)
tree78ea7707f6d01135ffbc3ca65772e2193dec8c8d /drivers/staging/rtl8188eu/hal/odm.c
parent85487bd7218793321cfd80c9462f2b6bfb53a39b (diff)
downloadlinux-a75d6a3279110d8144f7209afa4e1f1680741412.tar.xz
staging: rtl8188eu: remove ASSERT and ODM_RT_ASSERT macros
Remove the ASSERT and ODM_RT_ASSERT macros from include/odm_debug.h as they are unnecessary. ASSERT does nothing, compiling to a single empty statement. ODM_RT_ASSERT is used in only one place, in the ODM_RAStateCheck function with hal/odm.c - it seems to have been intended as an assertion of some kind, but given it is always called with false here, there is little point in it not just being a pr_info() call. Also, the lines relating to the file, function and line number are not needed as the pr_info() with the function name and error message is sufficient should anyone wish to track down this error at a source level, within what is currently a relatively small function. Signed-off-by: Phillip Potter <phil@philpotter.co.uk> Link: https://lore.kernel.org/r/20210524224532.1230-1-phil@philpotter.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/hal/odm.c')
-rw-r--r--drivers/staging/rtl8188eu/hal/odm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/hal/odm.c b/drivers/staging/rtl8188eu/hal/odm.c
index 4d659a812aed..b800d0c6dff5 100644
--- a/drivers/staging/rtl8188eu/hal/odm.c
+++ b/drivers/staging/rtl8188eu/hal/odm.c
@@ -824,7 +824,7 @@ bool ODM_RAStateCheck(struct odm_dm_struct *pDM_Odm, s32 RSSI, bool bForceUpdate
LowRSSIThreshForRA += GoUpGap;
break;
default:
- ODM_RT_ASSERT(pDM_Odm, false, ("wrong rssi level setting %d !", *pRATRState));
+ pr_info("%s(): wrong rssi level setting %d!\n", __func__, *pRATRState);
break;
}