X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH 2/3] platform/mellanox: mlxbf-tmfifo: Remove unnecessary bool conversion
@ 2023-11-03 23:54 Jules Irenge
  2023-11-14 11:09 ` Ilpo Järvinen
  2023-11-20 12:03 ` Hans de Goede
  0 siblings, 2 replies; 5+ messages in thread
From: Jules Irenge @ 2023-11-03 23:54 UTC (permalink / raw)
  To: hdegoede; +Cc: lpo.jarvinen, markgross, vadimp, platform-driver-x86

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>
---
 drivers/platform/mellanox/mlxbf-tmfifo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/mellanox/mlxbf-tmfifo.c b/drivers/platform/mellanox/mlxbf-tmfifo.c
index ab7d7a1235b8..88472c024680 100644
--- a/drivers/platform/mellanox/mlxbf-tmfifo.c
+++ b/drivers/platform/mellanox/mlxbf-tmfifo.c
@@ -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)
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-20 12:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-03 23:54 [PATCH 2/3] platform/mellanox: mlxbf-tmfifo: Remove unnecessary bool conversion Jules Irenge
2023-11-14 11:09 ` Ilpo Järvinen
2023-11-14 11:11   ` Ilpo Järvinen
2023-11-14 11:46     ` Jules Irenge
2023-11-20 12:03 ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox