net: Delete trailing semi-colon from definition of netdev_WARN()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 14 Oct 2013 20:49:21 +0000 (21:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Oct 2013 04:13:21 +0000 (00:13 -0400)
Macro definitions should not normally end with a semi-colon, as this
makes it dangerous to use them an if...else statement.  Happily this
has not happened yet.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 2e53b44454ad808332ffc67b2af9b9426ab3cff6..27f62f746621a8758b7beb60b8b530604aa0fb74 100644 (file)
@@ -3049,7 +3049,7 @@ do {                                                              \
  * file/line information and a backtrace.
  */
 #define netdev_WARN(dev, format, args...)                      \
-       WARN(1, "netdevice: %s\n" format, netdev_name(dev), ##args);
+       WARN(1, "netdevice: %s\n" format, netdev_name(dev), ##args)
 
 /* netif printk helpers, similar to netdev_printk */