From: Satyam Sharma Date: Fri, 10 Aug 2007 22:28:10 +0000 (-0700) Subject: [NET] netconsole: Remove bogus check X-Git-Tag: v2.6.24-rc1~1454^2~811 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d133ccbdc30c7f86459519cec1126d6473762b10;p=pandora-kernel.git [NET] netconsole: Remove bogus check Based upon initial work by Keiichi Kii . The (!np.dev) check in write_msg() is bogus (always false), because: np.dev 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 np.dev. Also np.dev cannot go away from under us, because netpoll_setup() grabs us reference on it. So let's remove the bogus check. Signed-off-by: Satyam Sharma Acked-by: Keiichi Kii Acked-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- Reading git-diff-tree failed