Skip to content

PowerPC-NVRAM: Fine-tuning for some function implementations

SF Markus Elfring kernel-janitors linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8powerpc/nvram: Return directly after a failed parameter validation in dev_nvram_write()arch/powerpc/kernel/nvram_64.c+3 -50 replies
2/8powerpc/nvram: Return directly after a failed kmalloc() in dev_nvram_write()arch/powerpc/kernel/nvram_64.c+1 -30 replies
3/8powerpc/nvram: Move an assignment for the variable "ret" in dev_nvram_write()arch/powerpc/kernel/nvram_64.c+3 -23 replies
4/8powerpc/nvram: Return directly after a failed parameter validation in dev_nvram_read()arch/powerpc/kernel/nvram_64.c+7 -130 replies
5/8powerpc/nvram: Return directly after a failed kmalloc() in dev_nvram_read()arch/powerpc/kernel/nvram_64.c+2 -40 replies
6/8powerpc/nvram: Delete three error messages for a failed memory allocationarch/powerpc/kernel/nvram_64.c+3 -90 replies
7/8powerpc/nvram: Improve size determinations in three functionsarch/powerpc/kernel/nvram_64.c+3 -60 replies
8/8powerpc/nvram: Move an assignment for the variable "err" in nvram_scan_partitions()arch/powerpc/kernel/nvram_64.c+3 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] PowerPC-NVRAM: Fine-tuning for some function implementations

From: Markus Elfring <[email protected]>
Date: Thu, 19 Jan 2017 17:41:23 +0100

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

Markus Elfring (8):
Return directly after a failed parameter validation in dev_nvram_write() Return directly after a failed kmalloc() in dev_nvram_write() Move an assignment for the variable "ret" in dev_nvram_write() Return directly after a failed parameter validation in dev_nvram_read() Return directly after a failed kmalloc() in dev_nvram_read() Delete three error messages for a failed memory allocation Improve size determinations in three functions
Move an assignment for the variable "err" in nvram_scan_partitions()

 arch/powerpc/kernel/nvram_64.c | 63 +++++++++++++++---------------------------
 1 file changed, 22 insertions(+), 41 deletions(-)
Signature · 1 line
2.11.0