Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49193 )
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
mb/hp/pavilion_m6_1035dx: Remove braces from single statement block
Braces are not necessary for single statement blocks. Remove them, so that linter doesn't complain. Also, put opening braces on the previous line.
Change-Id: I05bd9e7fee16ed746ff234b1b2d5ffb99bb38c9e Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/mainboard/hp/pavilion_m6_1035dx/BiosCallOuts.c M src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c 2 files changed, 3 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/49193/1
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/BiosCallOuts.c b/src/mainboard/hp/pavilion_m6_1035dx/BiosCallOuts.c index dd4c42b..7ca4a6e 100644 --- a/src/mainboard/hp/pavilion_m6_1035dx/BiosCallOuts.c +++ b/src/mainboard/hp/pavilion_m6_1035dx/BiosCallOuts.c @@ -7,8 +7,7 @@ #include <southbridge/amd/agesa/hudson/imc.h> #include <vendorcode/amd/agesa/f15tn/Proc/Fch/FchPlatform.h>
-const BIOS_CALLOUT_STRUCT BiosCallouts[] = -{ +const BIOS_CALLOUT_STRUCT BiosCallouts[] = { {AGESA_DO_RESET, agesa_Reset }, {AGESA_READ_SPD, agesa_ReadSpd }, {AGESA_READ_SPD_RECOVERY, agesa_NoopUnsupported }, @@ -41,8 +40,7 @@ {0xff, 0xffffffff} };
-static const CODEC_TBL_LIST CodecTableList[] = -{ +static const CODEC_TBL_LIST CodecTableList[] = { {0x10ec0272, (CODEC_ENTRY*)&Parmer_Alc272_VerbTbl[0]}, {(UINT32)0x0FFFFFFFF, (CODEC_ENTRY*)0x0FFFFFFFFUL} }; diff --git a/src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c b/src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c index 0baf079..7a5cedd 100644 --- a/src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c +++ b/src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c @@ -78,9 +78,8 @@
sum = pirq->checksum - sum;
- if (sum != pirq->checksum) { + if (sum != pirq->checksum) pirq->checksum = sum; - }
printk(BIOS_INFO, "%s done.\n", __func__);
Attention is currently required from: Felix Singer. Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49193 )
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/49193/comment/952839a5_b9424e12 PS1, Line 7: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block That's completely personal preference, AFAICT. There are many people in the community against it. Is there really a linter for this or is it checkpatch?
Attention is currently required from: Felix Singer. Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49193 )
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/49193/comment/5bdb6db3_741b076e PS1, Line 10: Also, put opening braces on the previous : line. Summary doesn't account for this change.
Attention is currently required from: Felix Singer. Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/49193
to look at the new patch set (#2).
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
mb/hp/pavilion_m6_1035dx: Remove braces from single statement block
Braces are not necessary for single statement blocks. Remove them, so that linter doesn't complain.
Change-Id: I05bd9e7fee16ed746ff234b1b2d5ffb99bb38c9e Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/49193/2
Attention is currently required from: Nico Huber, Angel Pons. Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49193 )
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
Patch Set 2:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/49193/comment/8e764cca_2c82754f PS1, Line 7: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block
Is there really a linter for this or is it checkpatch?
It seems it's checkpatch.pl, but what's the difference between them? It appears in https://qa.coreboot.org/job/untested-coreboot-files/lastSuccessfulBuild/arti...
That's completely personal preference, AFAICT. There are many people in the community against it.
I understand that. Even it's only a warning, it's very irritating though. Like "should it be done like this or not"?
https://review.coreboot.org/c/coreboot/+/49193/comment/ee96e3c0_be9ab7b3 PS1, Line 10: Also, put opening braces on the previous : line.
Summary doesn't account for this change.
Moved into CB:49234
Attention is currently required from: Felix Singer, Angel Pons. Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49193 )
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
Patch Set 2:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/49193/comment/9a987229_48ae7c23 PS1, Line 7: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block
Is there really a linter for this or is it checkpatch? […]
I don't remember if we came to any conclusion in [1]. Even if not, if there are enough arguments to not warn about too many braces, I'd ack a patch that removes that from checkpatch.
[1] [coreboot] More coding style change proposals
Attention is currently required from: Felix Singer, Angel Pons. Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/49193
to look at the new patch set (#5).
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
mb/hp/pavilion_m6_1035dx: Remove braces from single statement block
Braces are not necessary for single statement blocks. Remove them, so that linter doesn't complain.
Change-Id: I05bd9e7fee16ed746ff234b1b2d5ffb99bb38c9e Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/49193/5
Attention is currently required from: Felix Singer, Angel Pons. Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/49193
to look at the new patch set (#6).
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
mb/hp/pavilion_m6_1035dx: Remove braces from single statement block
Braces are not necessary for single statement blocks. Remove them, so that linter doesn't complain.
Change-Id: I05bd9e7fee16ed746ff234b1b2d5ffb99bb38c9e Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/49193/6
Attention is currently required from: Felix Singer, Angel Pons. Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/49193
to look at the new patch set (#7).
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
mb/hp/pavilion_m6_1035dx: Remove braces from single statement block
Braces are not necessary for single statement blocks. Remove them, so that linter doesn't complain.
Change-Id: I05bd9e7fee16ed746ff234b1b2d5ffb99bb38c9e Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/49193/7
Felix Singer has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/49193 )
Change subject: mb/hp/pavilion_m6_1035dx: Remove braces from single statement block ......................................................................
Abandoned