Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: Remove unnecessary alias of printk()

This module defines four alias for printk(). Removed them
all, because they are not used anywhere else in the driver.
Converted the only exception to the explicit use of printk().

Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20210606034038.9657-1-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Fabio M. De Francesco and committed by
Greg Kroah-Hartman
54fd727f 33e82ff2

+1 -24
+1 -1
drivers/staging/rtl8712/rtl8712_cmd.c
··· 55 55 /* Here we only set bPbcPressed to true 56 56 * After trigger PBC, the variable will be set to false 57 57 */ 58 - DBG_8712("CheckPbcGPIO - PBC is pressed !!!!\n"); 58 + printk(KERN_DEBUG "CheckPbcGPIO - PBC is pressed !!!!\n"); 59 59 /* 0 is the default value and it means the application monitors 60 60 * the HW PBC doesn't provide its pid to driver. 61 61 */
-23
drivers/staging/rtl8712/rtl871x_debug.h
··· 127 127 #undef _MODULE_DEFINE_ 128 128 #endif 129 129 130 - #define _dbgdump printk 131 - 132 - #define MSG_8712(x, ...) {} 133 - 134 - #define DBG_8712(x, ...) {} 135 - 136 - #define WRN_8712(x, ...) {} 137 - 138 - #define ERR_8712(x, ...) {} 139 - 140 - #undef MSG_8712 141 - #define MSG_8712 _dbgdump 142 - 143 - #undef DBG_8712 144 - #define DBG_8712 _dbgdump 145 - 146 - #undef WRN_8712 147 - #define WRN_8712 _dbgdump 148 - 149 - #undef ERR_8712 150 - #define ERR_8712 _dbgdump 151 - 152 130 #endif /*__RTL871X_DEBUG_H__*/ 153 -