Page MenuHomeFreeBSD

stand: Remove a pointless goto
ClosedPublic

Authored by jhb on Wed, Jul 29, 7:23 PM.

Details

Summary

Commit 505222d35fea removed a batch of code that this goto used to skip
around.

Fixes: 505222d35fea ("Implement the long-awaited module->file cache database. A userland tool (kldxref(8)) keeps a cache of what modules and versions are inside what .ko files. I have tested this on both Alpha and i386.")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Wed, Jul 29, 7:23 PM
This revision is now accepted and ready to land.Wed, Jul 29, 7:31 PM
olce added a subscriber: olce.

While here, you could apply the same treatment to the preceding if, except the call to parse_modmetadata() needs to be preserved. The fact that the return process is the same irrespective of whether that latter call returns 0 or not looks suspect. After a very quick glance, this function does not seem to have proper error reporting anyway.

While here, you could apply the same treatment to the preceding if, except the call to parse_modmetadata() needs to be preserved. The fact that the return process is the same irrespective of whether that latter call returns 0 or not looks suspect. After a very quick glance, this function does not seem to have proper error reporting anyway.

See followup in the stack

This revision was automatically updated to reflect the committed changes.