fs: Avoid division in memcpy_sz()
Instead of dividing count by rwsize, use ALIGN_DOWN() and change the
loop to decrement by "rwsize" bytes.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d7c2384 commit 684a457ea462707380b9ef6cc5659835f62122ab
@Andrey Smirnov Andrey Smirnov authored on 29 Jan 2019
Sascha Hauer committed on 6 Feb 2019
Showing 1 changed file
View
fs/devfs-core.c