]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The variable 'error' in sys_poll() is initialized in declaration to value
authordavide <davide@FreeBSD.org>
Sun, 17 Jun 2012 13:03:50 +0000 (13:03 +0000)
committerdavide <davide@FreeBSD.org>
Sun, 17 Jun 2012 13:03:50 +0000 (13:03 +0000)
commit163c370e1432346585a6c87cfabcfd8613efd224
tree826734cdab965d4f72ed2738742fc69a9eeb8dec
parent44b4398f7d9f0ed863dd8cfd3bd835118fe08b7e
The variable 'error' in sys_poll() is initialized in declaration to value
zero but in any case is overwritten by successive copyin(), making the
previous initialization useless. Remove this.
As an added bonus this fixes a style(9) bug.

Discussed with: kib
Approved by: gnn (mentor)
MFC after: 3 days
sys/kern/sys_generic.c