* [PATCH] Bluetooth: Unnecessary braces around single line statment. [not found] <20250125165804.11486-1-deaner92.ref@yahoo.com> @ 2025-01-25 16:58 ` deaner92 2025-01-26 8:02 ` Paul Menzel 2025-01-29 20:20 ` [PATCH] Bluetooth: Unnecessary braces around single line statment patchwork-bot+bluetooth 0 siblings, 2 replies; 5+ messages in thread From: deaner92 @ 2025-01-25 16:58 UTC (permalink / raw) Cc: deaner92, marcel, luiz.dentz, linux-bluetooth, linux-kernel From: Jeremy Clifton <deaner92@yahoo.com> Warning found with checkpatch.pl script. Removed unnecessary braces. Signed-off-by: Jeremy Clifton <deaner92@yahoo.com> --- drivers/bluetooth/bfusb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index cab93935cc7f..0d6ad50da046 100644 --- a/drivers/bluetooth/bfusb.c +++ b/drivers/bluetooth/bfusb.c @@ -365,9 +365,8 @@ static void bfusb_rx_complete(struct urb *urb) buf += 3; } - if (count < len) { + if (count < len) bt_dev_err(data->hdev, "block extends over URB buffer ranges"); - } if ((hdr & 0xe1) == 0xc1) bfusb_recv_block(data, hdr, buf, len); -- 2.43.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: Unnecessary braces around single line statment. 2025-01-25 16:58 ` [PATCH] Bluetooth: Unnecessary braces around single line statment deaner92 @ 2025-01-26 8:02 ` Paul Menzel 2025-01-26 19:27 ` [PATCH] Bluetooth: Remove unnecessary braces around single line statement Jeremy Dean 2025-01-29 20:20 ` [PATCH] Bluetooth: Unnecessary braces around single line statment patchwork-bot+bluetooth 1 sibling, 1 reply; 5+ messages in thread From: Paul Menzel @ 2025-01-26 8:02 UTC (permalink / raw) To: Jeremy Clifton; +Cc: marcel, luiz.dentz, linux-bluetooth, linux-kernel Dear Jeremy, Thank you for your patch. Could you please make the summary/title a statement, and remove the dot/period at the end: Bluetooth: Remove unnecessary braces around single line statement Am 25.01.25 um 17:58 schrieb deaner92@yahoo.com: > From: Jeremy Clifton <deaner92@yahoo.com> > > Warning found with checkpatch.pl script. Removed unnecessary braces. I’d use imperative mood for the second sentence: Remove unnecessary braces. Also please add a Fixes: tag. > Signed-off-by: Jeremy Clifton <deaner92@yahoo.com> > --- > drivers/bluetooth/bfusb.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c > index cab93935cc7f..0d6ad50da046 100644 > --- a/drivers/bluetooth/bfusb.c > +++ b/drivers/bluetooth/bfusb.c > @@ -365,9 +365,8 @@ static void bfusb_rx_complete(struct urb *urb) > buf += 3; > } > > - if (count < len) { > + if (count < len) > bt_dev_err(data->hdev, "block extends over URB buffer ranges"); > - } > > if ((hdr & 0xe1) == 0xc1) > bfusb_recv_block(data, hdr, buf, len); Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Kind regards, Paul ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: Remove unnecessary braces around single line statement 2025-01-26 8:02 ` Paul Menzel @ 2025-01-26 19:27 ` Jeremy Dean 2025-01-27 16:17 ` Markus Elfring 0 siblings, 1 reply; 5+ messages in thread From: Jeremy Dean @ 2025-01-26 19:27 UTC (permalink / raw) To: Paul Menzel; +Cc: marcel, luiz.dentz, linux-bluetooth, linux-kernel Dear Paul, I have changed the subject. Fixes: Coding style, unnecessary braces On Sun, Jan 26, 2025 at 09:02:04AM +0100, Paul Menzel wrote: > Dear Jeremy, > > > Thank you for your patch. Could you please make the summary/title a > statement, and remove the dot/period at the end: > > Bluetooth: Remove unnecessary braces around single line statement > > Am 25.01.25 um 17:58 schrieb deaner92@yahoo.com: > > From: Jeremy Clifton <deaner92@yahoo.com> > > > > Warning found with checkpatch.pl script. Removed unnecessary braces. > > I’d use imperative mood for the second sentence: > > Remove unnecessary braces. > > Also please add a Fixes: tag. > > > Signed-off-by: Jeremy Clifton <deaner92@yahoo.com> > > --- > > drivers/bluetooth/bfusb.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c > > index cab93935cc7f..0d6ad50da046 100644 > > --- a/drivers/bluetooth/bfusb.c > > +++ b/drivers/bluetooth/bfusb.c > > @@ -365,9 +365,8 @@ static void bfusb_rx_complete(struct urb *urb) > > buf += 3; > > } > > - if (count < len) { > > + if (count < len) > > bt_dev_err(data->hdev, "block extends over URB buffer ranges"); > > - } > > if ((hdr & 0xe1) == 0xc1) > > bfusb_recv_block(data, hdr, buf, len); > > Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> > > > Kind regards, > > Paul ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bluetooth: Remove unnecessary braces around single line statement 2025-01-26 19:27 ` [PATCH] Bluetooth: Remove unnecessary braces around single line statement Jeremy Dean @ 2025-01-27 16:17 ` Markus Elfring 0 siblings, 0 replies; 5+ messages in thread From: Markus Elfring @ 2025-01-27 16:17 UTC (permalink / raw) To: Jeremy Dean, linux-bluetooth, Marcel Holtmann, Luiz Von Dentz, Paul Menzel Cc: LKML > I have changed the subject. > > Fixes: Coding style, unnecessary braces See also once more: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.13#n145 Is such a tag really relevant for a coding style adjustment? https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22 Regards, Markus ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: Unnecessary braces around single line statment. 2025-01-25 16:58 ` [PATCH] Bluetooth: Unnecessary braces around single line statment deaner92 2025-01-26 8:02 ` Paul Menzel @ 2025-01-29 20:20 ` patchwork-bot+bluetooth 1 sibling, 0 replies; 5+ messages in thread From: patchwork-bot+bluetooth @ 2025-01-29 20:20 UTC (permalink / raw) To: Jeremy Dean; +Cc: marcel, luiz.dentz, linux-bluetooth, linux-kernel Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Sat, 25 Jan 2025 17:58:02 +0100 you wrote: > From: Jeremy Clifton <deaner92@yahoo.com> > > Warning found with checkpatch.pl script. Removed unnecessary braces. > > Signed-off-by: Jeremy Clifton <deaner92@yahoo.com> > --- > drivers/bluetooth/bfusb.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Here is the summary with links: - Bluetooth: Unnecessary braces around single line statment. https://git.kernel.org/bluetooth/bluetooth-next/c/a2a245849af8 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-29 20:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250125165804.11486-1-deaner92.ref@yahoo.com>
2025-01-25 16:58 ` [PATCH] Bluetooth: Unnecessary braces around single line statment deaner92
2025-01-26 8:02 ` Paul Menzel
2025-01-26 19:27 ` [PATCH] Bluetooth: Remove unnecessary braces around single line statement Jeremy Dean
2025-01-27 16:17 ` Markus Elfring
2025-01-29 20:20 ` [PATCH] Bluetooth: Unnecessary braces around single line statment patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox