This fixes a warning from GCC for kernels without netmap since the
return value is never used.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 37138 Build 34027: arc lint + arc unit
Event Timeline
sys/net/iflib.c | ||
---|---|---|
1288 | I think @vmaffione would be the responsible one for these functions? But, why not just make this a void, too, since it only is called in one place and the return value is never checked there. |
sys/net/iflib.c | ||
---|---|---|
1288 |
I considered that, but wanted to defer. The other option is that if the driver wants to explicitly ignore the return value it could use '(void)' when calling the function which might also quiet the compiler complaint. |
sys/net/iflib.c | ||
---|---|---|
1288 | I would prefer to leave the return value as an int, even if the return value is not used right now by this particular driver. It's a matter of uniformity within netmap (RX counterpart, other drivers, Linux drivers, etc.). |