From: Andrew Lunn <andrew@lunn.ch>
To: Yang Li <yang.lee@linux.alibaba.com>
Cc: bagasdotme@gmail.com, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com,
netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Abaci Robot <abaci@linux.alibaba.com>
Subject: Re: [PATCH -next v2] net: ethernet: Simplify bool conversion
Date: Fri, 4 Nov 2022 16:41:29 +0100 [thread overview]
Message-ID: <Y2UyqcjbDYx1rqcd@lunn.ch> (raw)
In-Reply-To: <20221104030313.81670-1-yang.lee@linux.alibaba.com>
On Fri, Nov 04, 2022 at 11:03:13AM +0800, Yang Li wrote:
> The result of 'scaled_ppm < 0' is Boolean, and the question mark
> expression is redundant, remove it to clear the below warning:
>
> ./drivers/net/ethernet/renesas/rcar_gen4_ptp.c:32:40-45: WARNING: conversion to bool not needed here
>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2729
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>
> change in v2:
> --According to Bagas's suggestion, describe what this patch does to fix this warning.
The Subject line is too generic. It is a good idea to run git log on
the file you are changing and see how it is generally referred to:
b48b89f9c189 net: drop the weight argument from netif_napi_add
0140a7168f8b Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
6a1dbfefdae4 net: sh_eth: Fix PHY state warning splat during system resume
4924c0cdce75 net: ravb: Fix PHY state warning splat during system resume
1089877ada8d ravb: Add RZ/G2L MII interface support
949f252a8594 net: ravb: Add R-Car Gen4 support
e1154be73153 ravb: Add support for RZ/V2M
72069a7b2821 ravb: Use separate clock for gPTP
b0265dcba3d6 ravb: Support separate Line0 (Desc), Line1 (Err) and Line2 (Mgmt) irqs
cb99badde146 ravb: Separate handling of irq enable/disable regs into feature
91398a960edf ravb: Use GFP_KERNEL instead of GFP_ATOMIC when possible
9a90986efcff sh_eth: kill useless initializers in sh_eth_{suspend|resume}()
e7d966f9ea52 sh_eth: sh_eth_close() always returns 0
be94a51f3e5e ravb: ravb_close() always returns 0
Without something specific like ravb, you won't get the right people
noticing the patch.
Andrew
prev parent reply other threads:[~2022-11-04 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 3:03 Yang Li
2022-11-04 6:17 ` Richard Cochran
2022-11-04 15:41 ` Andrew Lunn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y2UyqcjbDYx1rqcd@lunn.ch \
--to=andrew@lunn.ch \
--cc=abaci@linux.alibaba.com \
--cc=bagasdotme@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=yang.lee@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®