path: root/examples
diff options
authorBruce Richardson <>2014-08-28 16:42:34 +0100
committerThomas Monjalon <>2014-09-17 11:27:50 +0200
commitcafa59684660640c8bf847547613a48bc7a9d37c (patch)
tree72630ea82fb6b44117c0da46587dbeac73f0aa20 /examples
parentf635747001bceab7ce4c1497f4dfe338d26c8d9b (diff)
ixgbe: keep only non-zero initializer in mbuf definition
Since all unspecified fields in an initializer are assumed to be zero we can simplify the empty mbuf definition in the vector driver to only use the fields that are non-zero, i.e. just nb_segs = 1. This makes things shorter and means that the structure doesn't need as many updates for other fields being renamed or moved. The variable itself is never modified and only used by a single function so it can be made const and local to the using function. Signed-off-by: Bruce Richardson <> Acked-by: Pablo de Lara <> Acked-by: Olivier Matz <>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions