Page MenuHomeFreeBSD

LinuxKPI: string_choices.h: use ternary operator
ClosedPublic

Authored by bz on Tue, Feb 3, 6:52 PM.

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 Not Applicable
Unit
Tests Not Applicable

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.