Commit d133ccbd authored by Satyam Sharma's avatar Satyam Sharma Committed by David S. Miller
Browse files

[NET] netconsole: Remove bogus check

Based upon initial work by Keiichi Kii <>.

The (! check in write_msg() is bogus (always false), because: is
set by netpoll_setup(), which is called by init_netconsole() before
register_console(), so write_msg() cannot be triggered unless netpoll_setup()
successfully set  Also cannot go away from under us, because
netpoll_setup() grabs us reference on it.  So let's remove the bogus check.
Signed-off-by: default avatarSatyam Sharma <>
Acked-by: default avatarKeiichi Kii <>
Acked-by: default avatarMatt Mackall <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarDavid S. Miller <>
parent d39badf0
......@@ -67,9 +67,6 @@ static void write_msg(struct console *con, const char *msg, unsigned int len)
int frag, left;
unsigned long flags;
if (!
for (left = len; left;) {
Supports Markdown
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