Commit f0dddb1d authored by Mateusz Kulikowski's avatar Mateusz Kulikowski Committed by Greg Kroah-Hartman

staging: rtl8192e: Remove RTLLIB_ERROR() and RTLLIB_WARNING()

Use pr_* where needed (rtllib init code).
Signed-off-by: default avatarMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 11e672c3
...@@ -701,8 +701,6 @@ do { \ ...@@ -701,8 +701,6 @@ do { \
#define RTLLIB_DL_TRACE (1<<29) #define RTLLIB_DL_TRACE (1<<29)
#define RTLLIB_DL_DATA (1<<30) #define RTLLIB_DL_DATA (1<<30)
#define RTLLIB_DL_ERR (1<<31) #define RTLLIB_DL_ERR (1<<31)
#define RTLLIB_ERROR(f, a...) pr_err("rtllib: " f, ## a)
#define RTLLIB_WARNING(f, a...) pr_warn("rtllib: " f, ## a)
#define RTLLIB_DEBUG_INFO(f, a...) RTLLIB_DEBUG(RTLLIB_DL_INFO, f, ## a) #define RTLLIB_DEBUG_INFO(f, a...) RTLLIB_DEBUG(RTLLIB_DL_INFO, f, ## a)
#define RTLLIB_DEBUG_WX(f, a...) RTLLIB_DEBUG(RTLLIB_DL_WX, f, ## a) #define RTLLIB_DEBUG_WX(f, a...) RTLLIB_DEBUG(RTLLIB_DL_WX, f, ## a)
......
...@@ -107,7 +107,7 @@ struct net_device *alloc_rtllib(int sizeof_priv) ...@@ -107,7 +107,7 @@ struct net_device *alloc_rtllib(int sizeof_priv)
dev = alloc_etherdev(sizeof(struct rtllib_device) + sizeof_priv); dev = alloc_etherdev(sizeof(struct rtllib_device) + sizeof_priv);
if (!dev) { if (!dev) {
RTLLIB_ERROR("Unable to network device.\n"); pr_err("Unable to allocate net_device.\n");
return NULL; return NULL;
} }
ieee = (struct rtllib_device *)netdev_priv_rsl(dev); ieee = (struct rtllib_device *)netdev_priv_rsl(dev);
...@@ -116,8 +116,7 @@ struct net_device *alloc_rtllib(int sizeof_priv) ...@@ -116,8 +116,7 @@ struct net_device *alloc_rtllib(int sizeof_priv)
err = rtllib_networks_allocate(ieee); err = rtllib_networks_allocate(ieee);
if (err) { if (err) {
RTLLIB_ERROR("Unable to allocate beacon storage: %d\n", pr_err("Unable to allocate beacon storage: %d\n", err);
err);
goto failed; goto failed;
} }
rtllib_networks_initialize(ieee); rtllib_networks_initialize(ieee);
...@@ -240,8 +239,7 @@ static int __init rtllib_init(void) ...@@ -240,8 +239,7 @@ static int __init rtllib_init(void)
rtllib_debug_level = debug; rtllib_debug_level = debug;
rtllib_proc = proc_mkdir(DRV_NAME, init_net.proc_net); rtllib_proc = proc_mkdir(DRV_NAME, init_net.proc_net);
if (rtllib_proc == NULL) { if (rtllib_proc == NULL) {
RTLLIB_ERROR("Unable to create " DRV_NAME pr_err("Unable to create " DRV_NAME " proc directory\n");
" proc directory\n");
return -EIO; return -EIO;
} }
e = proc_create("debug_level", S_IRUGO | S_IWUSR, rtllib_proc, &fops); e = proc_create("debug_level", S_IRUGO | S_IWUSR, rtllib_proc, &fops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment