Page MenuHomeFreeBSD

Remove unused error return from API that cannot fail
ClosedPublic

Authored by cem on Feb 15 2018, 1:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:17 AM
Unknown Object (File)
Nov 15 2023, 4:53 PM
Unknown Object (File)
Nov 12 2023, 10:49 AM
Unknown Object (File)
Aug 27 2023, 6:50 AM
Unknown Object (File)
Aug 13 2023, 6:11 AM
Unknown Object (File)
Aug 7 2023, 11:15 PM
Unknown Object (File)
Aug 4 2023, 6:19 PM
Unknown Object (File)
Aug 4 2023, 6:18 PM

Details

Summary

No implementation of fpu_kern_enter() can fail, and it was causing needless
error checking boilerplate and confusion. Change the return code to void to
match reality.

Reported by: Lachlan Mcilroy <Lachlan.McIlroy AT isilon.com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

(Secteam blessing needed only for trivial dev/random change.)

Ping @secteam, it's been about a week. This change is pretty trivially correct. I'm ready to "Approved by: secteam (timeout)". Thanks.

This revision is now accepted and ready to land.Feb 23 2018, 7:30 AM
This revision was automatically updated to reflect the committed changes.

You have not updated manual page, but the change looks otherwise fine to me.

You have not updated manual page, but the change looks otherwise fine to me.

Good point. Fixed in r330619.