]> git.baikalelectronics.ru Git - kernel.git/commit
ubi: fastmap: Clean up the initialization of pointer p
authorColin Ian King <colin.king@canonical.com>
Sun, 29 Oct 2017 13:14:26 +0000 (13:14 +0000)
committerRichard Weinberger <richard@nod.at>
Wed, 17 Jan 2018 20:48:02 +0000 (21:48 +0100)
commit1b56dcc64b00970f193db7d3c4374d7f0e61edf5
treea717c9aed0d1dd0af22df5b5b4fd54bb91dda746
parent3d09d6399aaaf4c7914deb880489fce78d7f2c69
ubi: fastmap: Clean up the initialization of pointer p

The pointer p is being initialized with one value and a few lines
later being set to a newer replacement value. Clean up the code by
using the latter assignment to p as the initial value. Cleans up
clang warning:

drivers/mtd/ubi/fastmap.c:217:19: warning: Value stored to 'p'
during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap.c