[dpdk-dev] [PATCH v9 2/5] ixgbe: add ops to support ethtool ops
Stephen Hemminger
stephen at networkplumber.org
Sat Jun 27 03:34:03 CEST 2015
On Fri, 26 Jun 2015 21:19:05 -0400
Liang-Min Larry Wang <liang-min.wang at intel.com> wrote:
> + reg_group = reg_set[g_ind++];
> + while (reg_group) {
> + count += ixgbe_regs_group_count(reg_group);
> + reg_group = reg_set[g_ind++];
> + }
I don't care what checkpatch says, this an example of a loop
which reads better as:
while ((reg_group = reg_set[g_ind++]))
count += ixgbe_regs_group_count(reg_group);
More information about the dev
mailing list