gigaset: get rid of info() and warn() macros
Join the move away from the obsolete info() macro, opencoding the remaining uses. While we're at it, also get rid of the warn() macro by promoting the three remaining uses to err(). Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
@@ -701,7 +701,7 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname,
|
||||
|
||||
ret = tty_register_driver(tty);
|
||||
if (ret < 0) {
|
||||
warn("failed to register tty driver (error %d)", ret);
|
||||
err("failed to register tty driver (error %d)", ret);
|
||||
goto error;
|
||||
}
|
||||
gig_dbg(DEBUG_IF, "tty driver initialized");
|
||||
@@ -709,7 +709,7 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname,
|
||||
return;
|
||||
|
||||
enomem:
|
||||
warn("could not allocate tty structures");
|
||||
err("could not allocate tty structures");
|
||||
error:
|
||||
if (drv->tty)
|
||||
put_tty_driver(drv->tty);
|
||||
|
新增問題並參考
封鎖使用者