diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2023-11-03 23:54:08 +0000 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-11-20 13:20:33 +0100 |
commit | 57eb82ff34e3e3dfa95a80c40ef5a4764c833ec6 (patch) | |
tree | 035d6f5c597eda055b71d69859459b3df3e0656c /drivers/platform/mellanox | |
parent | 2340f12023efa7dc256f496d85d2411ca47cb9a2 (diff) | |
download | linux-stable-57eb82ff34e3e3dfa95a80c40ef5a4764c833ec6.tar.gz linux-stable-57eb82ff34e3e3dfa95a80c40ef5a4764c833ec6.tar.bz2 linux-stable-57eb82ff34e3e3dfa95a80c40ef5a4764c833ec6.zip |
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>
Diffstat (limited to 'drivers/platform/mellanox')
-rw-r--r-- | drivers/platform/mellanox/mlxbf-tmfifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/mellanox/mlxbf-tmfifo.c b/drivers/platform/mellanox/mlxbf-tmfifo.c index 5c683b4eaf10..ed16ec422a7b 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) |