From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 27 Sep 2016 18:29:08 +0200
Several update suggestions were taken into account from static source code analysis. Markus Elfring (16): Use kmalloc_array() in bitmap_storage_alloc() Move an assignment for the variable "offset" in bitmap_storage_alloc() Delete an unnecessary variable initialisation in bitmap_storage_alloc() Improve another size determination in bitmap_storage_alloc() Return directly after a failed bitmap_storage_alloc() in bitmap_resize() Return directly after a failed kzalloc() in bitmap_resize() Replace a kzalloc() call by kcalloc() in bitmap_resize() Rename a jump label in location_store() Rename a jump label in bitmap_copy_from_slot() Rename a jump label in bitmap_create() Rename a jump label in bitmap_init_from_disk() One check less in read_page() at the end Adjust checks for null pointers in 11 functions Delete unnecessary braces in bitmap_resize() Add spaces around three comparison operators Delete an unwanted space in read_sb_page() drivers/md/bitmap.c | 110 +++++++++++++++++++++++++--------------------------- 1 file changed, 52 insertions(+), 58 deletions(-) -- 2.10.0