]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: bcm: Alter LOC for readability/understandability purposes
authorKevin McKinney <klmckinney1@gmail.com>
Wed, 28 Sep 2011 01:28:11 +0000 (21:28 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Sep 2011 00:34:51 +0000 (17:34 -0700)
commit7f7e623253cc0898b070a6de5e2fe1d272b23eb5
tree8c0b7a4aaac9d1316ccc9036559545700708785e
parent70b8dee087f9bbfae861fda3ae6daa409e75b052
Staging: bcm: Alter LOC for readability/understandability purposes

This patch alters a line of code to make it more readable
and easier to understand. The purpose of the original line
of code was to compute the amount of memory to request from
kmalloc. This mulit-step algorithm was being done in one
line of code, thus making it more difficult to understand.
Therefore, I split this algorithm into three logical steps.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/Bcmchar.c