xsk: Drop ternary operator from xskq_cons_has_entries
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Wed, 13 Apr 2022 15:30:15 +0000 (17:30 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 15 Apr 2022 19:11:17 +0000 (21:11 +0200)
commit0fb53aabc5fcdf848ec7adc777baff25a1c6c335
treef9774e1ed74bd5cbd26af73dced3190c2845c64d
parent4efad196163f4302c5cdc020899074b174eaf956
xsk: Drop ternary operator from xskq_cons_has_entries

Simplify the mentioned helper function by removing ternary operator. The
expression that is there outputs the boolean value by itself.

This helper might be used in the hot path so this simplification can
also be considered as micro optimization.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220413153015.453864-15-maciej.fijalkowski@intel.com
net/xdp/xsk_queue.h