Page MenuHomeFreeBSD

LinuxKPI: string_choices.h: use ternary operator
ClosedPublic

Authored by bz on Tue, Feb 3, 6:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 5, 11:31 PM
Unknown Object (File)
Tue, Feb 3, 7:11 PM
Subscribers

Details

Summary

Switch from using if () else to a direct return (?:) code.
No functional changes.

Suggested by: kib (D55029)
Sponosred by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70378
Build 67261: arc lint + arc unit

Event Timeline

bz requested review of this revision.Tue, Feb 3, 6:52 PM

OK. The parens on (value) aren't needed though.

This revision is now accepted and ready to land.Tue, Feb 3, 7:09 PM

OK. The parens on (value) aren't needed though.

removed before push.

This revision was automatically updated to reflect the committed changes.