Skip to content

MTD-CFI: Fine-tuning for several function implementations

SF Markus Elfring kernel-janitors linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18mtd-cfi_cmdset_0001: Use kmalloc_array() in cfi_intelext_partition_fixup()drivers/mtd/chips/cfi_cmdset_0001.c+3 -11 reply
2/18mtd-cfi_cmdset_0001: Improve another size determination in cfi_intelext_partition_fixup()drivers/mtd/chips/cfi_cmdset_0001.c+1 -11 reply
3/18mtd-cfi_cmdset_0001: Add some spaces for better code readabilitydrivers/mtd/chips/cfi_cmdset_0001.c+70 -621 reply
4/18mtd-cfi_cmdset_0001: Delete an unnecessary variable initialisation in do_write_oneword()drivers/mtd/chips/cfi_cmdset_0001.c+1 -10 replies
5/18mtd-cfi_cmdset_0001: Use common error handling code in do_write_oneword()drivers/mtd/chips/cfi_cmdset_0001.c+3 -40 replies
6/18mtd-cfi_cmdset_0001: Use kcalloc() in cfi_intelext_setup()drivers/mtd/chips/cfi_cmdset_0001.c+3 -20 replies
7/18mtd-cfi_cmdset_0001: One function call and an unnecessary check less in cfi_intelext_setup()drivers/mtd/chips/cfi_cmdset_0001.c+7 -90 replies
8/18mtd-cfi_cmdset_0001: Rename a jump label in cfi_intelext_setup()drivers/mtd/chips/cfi_cmdset_0001.c+4 -50 replies
9/18mtd-cfi_cmdset_0002: Use kmalloc_array() in cfi_amdstd_setup()drivers/mtd/chips/cfi_cmdset_0002.c+3 -20 replies
10/18mtd-cfi_cmdset_0002: One function call less in cfi_amdstd_setup() after error detectiondrivers/mtd/chips/cfi_cmdset_0002.c+3 -20 replies
11/18mtd-cfi_cmdset_0002: Rename a jump label in cfi_amdstd_setup()drivers/mtd/chips/cfi_cmdset_0002.c+2 -30 replies
12/18mtd-cfi_cmdset_0002: Add some spaces for better code readabilitydrivers/mtd/chips/cfi_cmdset_0002.c+47 -370 replies
13/18mtd-cfi_cmdset_0002: Delete an unnecessary variable initialisation in do_write_oneword()drivers/mtd/chips/cfi_cmdset_0002.c+1 -10 replies
14/18mtd-cfi_cmdset_0002: Use common error handling code in do_write_oneword()drivers/mtd/chips/cfi_cmdset_0002.c+3 -40 replies
15/18mtd-cfi_cmdset_0002: Use kcalloc() in cfi_ppb_unlock()drivers/mtd/chips/cfi_cmdset_0002.c+1 -10 replies
16/18mtd-cfi_cmdset_0020: Use kmalloc_array() in cfi_staa_setup()drivers/mtd/chips/cfi_cmdset_0020.c+3 -20 replies
17/18mtd-cfi_cmdset_0020: Use common error handling code in cfi_staa_setup()drivers/mtd/chips/cfi_cmdset_0020.c+10 -130 replies
18/18mtd-cfi_cmdset_0020: Add some spaces for better code readabilitydrivers/mtd/chips/cfi_cmdset_0020.c+55 -441 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/18] MTD-CFI: Fine-tuning for several function implementations

From: Markus Elfring <[email protected]>
Date: Wed, 11 Jan 2017 21:21:12 +0100

Several update suggestions were taken into account from static source code analysis.

Markus Elfring (18):
Use kmalloc_array() in cfi_intelext_partition_fixup()
Improve another size determination in cfi_intelext_partition_fixup()
cfi_cmdset_0001: Add some spaces for better code readability
cfi_cmdset_0001: Delete an unnecessary variable initialisation in do_write_oneword()
cfi_cmdset_0001: Use common error handling code in do_write_oneword() Use kcalloc() in cfi_intelext_setup()
One function call and an unnecessary check less in cfi_intelext_setup() Rename a jump label in cfi_intelext_setup()
Use kmalloc_array() in cfi_amdstd_setup()
One function call less in cfi_amdstd_setup() after error detection Rename a jump label in cfi_amdstd_setup()
cfi_cmdset_0002: Add some spaces for better code readability
cfi_cmdset_0002: Delete an unnecessary variable initialisation in do_write_oneword()
cfi_cmdset_0002: Use common error handling code in do_write_oneword() Use kcalloc() in cfi_ppb_unlock()
Use kmalloc_array() in cfi_staa_setup()
Use common error handling code in cfi_staa_setup()
cfi_cmdset_0020: Add some spaces for better code readability

 drivers/mtd/chips/cfi_cmdset_0001.c | 165 +++++++++++++++++++-----------------
 drivers/mtd/chips/cfi_cmdset_0002.c | 110 +++++++++++++-----------
 drivers/mtd/chips/cfi_cmdset_0020.c | 127 ++++++++++++++-------------
 3 files changed, 214 insertions(+), 188 deletions(-)
Signature · 1 line
2.11.0