Page MenuHomeFreeBSD

cam/scsi: Use switch instead of chained if/else
ClosedPublic

Authored by ryan_freqlabs.com on Fri, Feb 1, 2:49 AM.

Details

Summary

Using a switch statement helps improve readability.

Sponsored by: iXsystems, Inc.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mav accepted this revision.Fri, Feb 1, 3:50 AM

Looks good to me.

This revision is now accepted and ready to land.Fri, Feb 1, 3:50 AM
This revision was automatically updated to reflect the committed changes.