LWN.net Logo

dev->weight at zero

dev->weight at zero

Posted May 4, 2003 3:47 UTC (Sun) by movement (guest, #871)
Parent article: Driver porting: Network drivers

> If you forget to initialize weight and leave it at zero, poll() will never be called

Any good reason there isn't "if (dev->poll) WARN_ON(!dev->weight);" ?


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds