]> err.no Git - linux-2.6/commit
[PATCH] Remove unnecessary kmalloc/kfree calls in mtdchar
authorThago Galesi <thiagogalesi@gmail.com>
Mon, 17 Apr 2006 16:38:15 +0000 (17:38 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 17 Apr 2006 16:38:15 +0000 (17:38 +0100)
commitb802c0741103aa92251d536c115874d51f802ec8
treecf2cb539e68b224ad06b4a43350454b847543381
parentcd2866faaa0efd9af18fe4a86d129cbd99240796
[PATCH] Remove unnecessary kmalloc/kfree calls in mtdchar

This patch removes repeated calls to kmalloc / kfree in mtd_write /
mtd_read functions, replacing them by a single kmalloc / kfree pair.

Signed-off-by: Thiago Galesi <thiagogalesi@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdchar.c