Re: [PATCH 03/27] drivers/net: fix sparse warning: returning void-valued expression
From: Randy Dunlap <hidden>
Date: 2008-12-26 19:59:41
Also in:
kernel-janitors, lkml
From: Randy Dunlap <hidden>
Date: 2008-12-26 19:59:41
Also in:
kernel-janitors, lkml
On Thu, 25 Dec 2008 16:17:40 -0800 (PST) David Miller [off-list ref] wrote:
From: Hannes Eder <redacted> Date: Mon, 22 Dec 2008 20:15:17 +0100quoted
Fix this sparse warning: drivers/net/niu.c:8850:2: warning: returning void-valued expression Signed-off-by: Hannes Eder <redacted>Can we just fix sparse not to generate this warning? It's marginal, at best. C++ even explicitly defines this as valid and last time I brought this up Linus even agreed.
Ack, I discussed it with him also and he thought that they were just fine as they were...
The types match, the function returns void and it is returning a void, what is the problem?
-- ~Randy