lkml.org 
[lkml]   [2017]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/8] PowerPC-NVRAM: Fine-tuning for some function implementations
Date
From: Markus Elfring <elfring@users.sourceforge.net>
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(-)

--
2.11.0

\
 
 \ /
  Last update: 2017-01-19 17:55    [W:0.141 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site