mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
platform/mellanox: mlxbf-tmfifo: Remove unnecessary bool conversion
This commit fixes coccinelle warning in macro function IS_VRING_DROP() which complains conversion to bool not needed here. Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Link: https://lore.kernel.org/r/ZUWIIKbz4vukl8qb@octinomon Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
2340f12023
commit
57eb82ff34
|
|
@ -91,7 +91,7 @@ struct mlxbf_tmfifo_vring {
|
|||
/* Check whether vring is in drop mode. */
|
||||
#define IS_VRING_DROP(_r) ({ \
|
||||
typeof(_r) (r) = (_r); \
|
||||
(r->desc_head == &r->drop_desc ? true : false); })
|
||||
r->desc_head == &r->drop_desc; })
|
||||
|
||||
/* A stub length to drop maximum length packet. */
|
||||
#define VRING_DROP_DESC_MAX_LEN GENMASK(15, 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user