Attention is currently required from: Felix Singer, Nico Huber, Thomas Heijligen, Jean THOMAS, Alexander Goncharov.
View Change
4 comments:
File dirtyjtag_spi.c:
Patch Set #10, Line 79: unsigned char *
Doesn't this drop the `const` property of the data pointed by the pointer? Shouldn't it be `const unsigned char *` instead?
Patch Set #10, Line 152: 30 * i
This is because each transfer is 30 bytes, right? How about addding a constant inside the loop:
const size_t xfer_offset = 30 * i;
Patch Set #10, Line 154: (const char *)transfer_buffer
Why are there casts here and inside the functions themselves? As these functions' signatures do not depend on external constraints (e.g. used as value for a function pointer), we can retype the parameters to avoid the double cast.
Patch Set #10, Line 160: i * 30
ditto
To view, visit change 67878. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ic43e9a014ed7d04e429e73b30c9dcfdde1a78913
Gerrit-Change-Number: 67878
Gerrit-PatchSet: 10
Gerrit-Owner: Jean THOMAS <virgule@jeanthomas.me>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger@posteo.net>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Thomas Heijligen <src@posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Alexander Goncharov <chat@joursoir.net>
Gerrit-Attention: Felix Singer <felixsinger@posteo.net>
Gerrit-Attention: Nico Huber <nico.h@gmx.de>
Gerrit-Attention: Thomas Heijligen <src@posteo.de>
Gerrit-Attention: Jean THOMAS <virgule@jeanthomas.me>
Gerrit-Attention: Alexander Goncharov <chat@joursoir.net>
Gerrit-Comment-Date: Sun, 09 Oct 2022 16:13:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment