]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: smc911x: Fix passing wrong number of parameters to DBG() macro
authorAndrew Lunn <andrew@lunn.ch>
Tue, 10 Nov 2020 03:02:46 +0000 (04:02 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 22:49:40 +0000 (14:49 -0800)
commiteb6df01433fd6d3602cc5ab1f2cee9bf10754b72
tree9afdb5a38cbf525bfeca3f483ec47bd5c02155e5
parent3a531bde06af083fd06b522f6c2fdf681556fef0
drivers: net: smc911x: Fix passing wrong number of parameters to DBG() macro

Now that the compiler always sees the parameters passed to the DBG()
macro, it gives an error message about wrong parameters. The comment
says it all:

/* ndev is not valid yet, so avoid passing it in. */
DBG(SMC_DEBUG_FUNC, "--> %s\n",  __func__);

You cannot not just pass a parameter!

The DBG does not seem to have any real value, to just remove it.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/smsc/smc911x.c