HomeFreeBSD

Refactor style of the ENA driver

Description

Refactor style of the ENA driver

  • Change all conditional checks in "if" statement to boolean expressions
  • Initialize variables with too complex values outside the declaration
  • Fix indentations
  • Move code associated with sysctls to ena_sysctl.c file
  • For consistency, remove unnecesary "return" from void functions
  • Use if_getdrvflags() function instead of accesing variable directly

Submitted by: Michal Krawczyk <mk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D12860

Details

Provenance
mwAuthored on
Differential Revision
D12860: Refactor style of the ENA driver
Parents
rS325579: Fix error handling in the ENA driver and lock drbr_free() call
Branches
Unknown
Tags
Unknown