* [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
* Re: [PATCH 2/3] platform/mellanox: mlxbf-tmfifo: Remove unnecessary bool conversion
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-20 12:03 ` Hans de Goede
1 sibling, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2023-11-14 11:09 UTC (permalink / raw)
To: Jules Irenge; +Cc: Hans de Goede, markgross, vadimp, platform-driver-x86
[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]
On Fri, 3 Nov 2023, Jules Irenge wrote:
> 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>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Not an end of the world but just in case you have it stored somewhere, my
email address was lacking the first letter in your post.
--
i.
> ---
> 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)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/3] platform/mellanox: mlxbf-tmfifo: Remove unnecessary bool conversion
2023-11-14 11:09 ` Ilpo Järvinen
@ 2023-11-14 11:11 ` Ilpo Järvinen
2023-11-14 11:46 ` Jules Irenge
0 siblings, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2023-11-14 11:11 UTC (permalink / raw)
To: Jules Irenge; +Cc: Hans de Goede, markgross, vadimp, platform-driver-x86
[-- Attachment #1: Type: text/plain, Size: 666 bytes --]
On Tue, 14 Nov 2023, Ilpo Järvinen wrote:
> On Fri, 3 Nov 2023, Jules Irenge wrote:
>
> > 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>
>
> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
>
> Not an end of the world but just in case you have it stored somewhere, my
> email address was lacking the first letter in your post.
Hi again,
I also realized right after send the reply that this is marked as 2/3 but
the other two patches didn't make it into lore archives (nor into
patchwork, I think).
--
i.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/3] platform/mellanox: mlxbf-tmfifo: Remove unnecessary bool conversion
2023-11-14 11:11 ` Ilpo Järvinen
@ 2023-11-14 11:46 ` Jules Irenge
0 siblings, 0 replies; 5+ messages in thread
From: Jules Irenge @ 2023-11-14 11:46 UTC (permalink / raw)
To: Ilpo Järvinen; +Cc: hdegoede, markgross, platform-driver-x86
> Hi again,
>
> I also realized right after send the reply that this is marked as 2/3 but
> the other two patches didn't make it into lore archives (nor into
> patchwork, I think).
>
> --
> i.
Hello
My bad, I sent three patches but they were all to completely different drivers/subsystems with completely different warning fixes.
I am still coming back to start sending patches after years maybe. I will from now on do patch series for one particular driver only then go to next.
Thanks for replying.
Jules
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/3] platform/mellanox: mlxbf-tmfifo: Remove unnecessary bool conversion
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-20 12:03 ` Hans de Goede
1 sibling, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2023-11-20 12:03 UTC (permalink / raw)
To: Jules Irenge; +Cc: lpo.jarvinen, markgross, vadimp, platform-driver-x86
Hi,
On 11/4/23 00:54, Jules Irenge wrote:
> 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>
Thank you for your patch, I've applied this patch to my review-hans
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.
Regards,
Hans
> ---
> 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)
^ permalink raw reply [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