Skip to content

Commit bad8f08

Browse files
committed
platform/mellanox: mlxbf-tmfifo: Remove unnecessary bool conversion
JIRA: https://issues.redhat.com/browse/RHEL-45234 commit 57eb82f Author: Jules Irenge <jbi.octave@gmail.com> Date: Fri, 3 Nov 2023 23:54:08 +0000 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> Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
1 parent 261a39c commit bad8f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/mellanox/mlxbf-tmfifo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct mlxbf_tmfifo_vring {
9191
/* Check whether vring is in drop mode. */
9292
#define IS_VRING_DROP(_r) ({ \
9393
typeof(_r) (r) = (_r); \
94-
(r->desc_head == &r->drop_desc ? true : false); })
94+
r->desc_head == &r->drop_desc; })
9595

9696
/* A stub length to drop maximum length packet. */
9797
#define VRING_DROP_DESC_MAX_LEN GENMASK(15, 0)

0 commit comments

Comments
 (0)