]> git.baikalelectronics.ru Git - kernel.git/commit
net: use WARN() for the WARN_ON in commit 3ee3eb2ac1687
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 23 Oct 2009 04:37:56 +0000 (21:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Oct 2009 04:37:56 +0000 (21:37 -0700)
commitaf714b6b565e59a86ab2dc48f56b5a87337f093a
tree2c99ed102d752d762cc051ee1e89539e0453bdc0
parent37d00dd2deb2bbd8700f8e9bf232d636a4364a68
net: use WARN() for the WARN_ON in commit 3ee3eb2ac1687

Commit 3ee3eb2ac1687 (tcp: Try to catch MSG_PEEK bug) added a printk()
to the WARN_ON() that's in tcp.c. This patch changes this combination
to WARN(); the advantage of WARN() is that the printk message shows up
inside the message, so that kerneloops.org will collect the message.

In addition, this gets rid of an extra if() statement.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c